aboutsummaryrefslogtreecommitdiffstats
path: root/core/comboot.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-08-11 13:20:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-08-11 13:20:04 -0700
commit0202356bab69a17bf9620432da4339348c0833b7 (patch)
tree41f5e3ca14e7946e252e39ca9473d22004f017cb /core/comboot.inc
parent6a1f8b6a4d1b61b43a14b17b4f88319a03b97250 (diff)
parent37003eb7e984370fad9407ce5db341b720e9d4cd (diff)
downloadsyslinux-4.00-pre2.tar.gz
syslinux-4.00-pre2.tar.xz
syslinux-4.00-pre2.zip
Merge commit 'liu/master' into fscsyslinux-4.00-pre2
Diffstat (limited to 'core/comboot.inc')
-rw-r--r--core/comboot.inc9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/comboot.inc b/core/comboot.inc
index da3c2399..007c3836 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -907,12 +907,11 @@ comapi_opendir:
pm_call mangle_name
pop ds
pm_call searchdir
- jnz comapi_err ; Didn't find a directory
+ jz comapi_err ; Didn't find a directory
+ mov eax,[si] ; the sector number where the dir stores
cmp eax,0
jz comapi_err ; Found nothing
- ;ZF is unset
- pm_call alloc_fill_dir
- mov P_EAX,eax
+ mov P_EAX,eax
mov P_CX,SECTOR_SIZE
mov P_SI,si
clc
@@ -929,7 +928,7 @@ comapi_readdir:
mov es,P_ES
mov di,P_DI
mov si,P_SI
- pm_call readdir
+ pm_call vfat_readdir
mov P_EAX,eax
mov P_DL,dl
mov P_EBX,ebx