diff options
| author | hpa <hpa> | 2004-12-16 08:27:54 +0000 |
|---|---|---|
| committer | hpa <hpa> | 2004-12-16 08:27:54 +0000 |
| commit | 3ba9cfbe01a98c9a2045a643df3de334e2ec8686 (patch) | |
| tree | ae587e46095eb873d51e928f4c95a9d4abc08749 /ldlinux.asm | |
| parent | e9ec84b9fb8cf5aab6331f3585e1ddb0c7ac083f (diff) | |
| download | syslinux-3ba9cfbe01a98c9a2045a643df3de334e2ec8686.tar.gz | |
Generate the length correctly
Diffstat (limited to 'ldlinux.asm')
| -rw-r--r-- | ldlinux.asm | 4 |
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 |
