aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-16 08:27:54 +0000
committerhpa <hpa>2004-12-16 08:27:54 +0000
commit3ba9cfbe01a98c9a2045a643df3de334e2ec8686 (patch)
treeae587e46095eb873d51e928f4c95a9d4abc08749
parente9ec84b9fb8cf5aab6331f3585e1ddb0c7ac083f (diff)
downloadsyslinux-elf-3ba9cfbe01a98c9a2045a643df3de334e2ec8686.tar.gz
syslinux-elf-3ba9cfbe01a98c9a2045a643df3de334e2ec8686.tar.xz
syslinux-elf-3ba9cfbe01a98c9a2045a643df3de334e2ec8686.zip
Generate the length correctly
-rw-r--r--ldlinux.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 1aaa2b81..157fae9a 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -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