summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2009-07-18 17:01:19 +0200
committerSebastian Herbszt <herbszt@gmx.de>2009-07-18 17:01:19 +0200
commit20a07f04211367537c99b4affa126f9dd519fddb (patch)
tree906ade03086d5c948f003f04336f4cd889d7498a
parent69e29b2dfd6eb865e353658e694e47284122527b (diff)
downloadsyslinux-20a07f04211367537c99b4affa126f9dd519fddb.tar.gz
gfxboot: display error message if bootlogo file not found
Display an error message if the user specified bootlogo file is not found. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
-rw-r--r--modules/gfxboot.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gfxboot.asm b/modules/gfxboot.asm
index 6d41db76..9555d26f 100644
--- a/modules/gfxboot.asm
+++ b/modules/gfxboot.asm
@@ -417,6 +417,14 @@ gfx_read_file:
mov si,pspCmdArg+1
int 22h
jnc gfx_file_read
+
+ mov ax,2
+ mov bx,pspCmdArg+1
+ int 22h
+
+ mov ax,2
+ mov bx,msg_not_found
+ int 22h
stc
ret
@@ -890,6 +898,7 @@ msg_memory db 'Could not detect available memory size',0dh,0ah,0
msg_bootlogo_toobig db 'bootlogo file too big',0dh,0ah,0
msg_pxelinux db 'pxelinux is not supported',0dh,0ah,0
msg_unknown_file_size db 'unknown file size',0dh,0ah,0
+msg_not_found db ' not found',0dh,0ah,0
msg_space db ' ',0
msg_crlf db 0dh,0ah,0