KernelType is a byte, not a word, oops... syslinux-3.40-pre2
authorH. Peter Anvin <hpa@zytor.com>
Sat, 23 Sep 2006 06:49:23 +0000 (23:49 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 23 Sep 2006 06:49:23 +0000 (23:49 -0700)
ui.inc

diff --git a/ui.inc b/ui.inc
index ab39567..33d7e59 100644 (file)
--- a/ui.inc
+++ b/ui.inc
@@ -514,7 +514,7 @@ kernel_good:
 ; At this point, DX:AX contains the size of the kernel, SI contains
 ; the file handle/cluster pointer, and ECX contains the extension (if any.)
 ;
-               mov di,[KernelType]
+               movzx di,byte [KernelType]
                add di,di
                jmp [kerneltype_table+di]