Generate the length correctly
authorhpa <hpa>
Thu, 16 Dec 2004 08:27:54 +0000 (08:27 +0000)
committerhpa <hpa>
Thu, 16 Dec 2004 08:27:54 +0000 (08:27 +0000)
ldlinux.asm

index 1aaa2b8..157fae9 100644 (file)
@@ -1158,8 +1158,8 @@ searchdir:
                add edx,[DataArea]
                mov [bx],edx                    ; Starting sector
 
-               mov edx,eax
-               shr edx,16                      ; 16-bitism, sigh
+               mov eax,[gs:si+28]              ; File length again
+               mov dx,[gs:si+30]               ; 16-bitism, sigh
                mov si,bx
                and eax,eax                     ; ZF <- 0