forked from KolibriOS/kolibrios
fs/ext: Fix the return value of f70.1 (readdir)
Return ERROR_END_OF_FILE instead of ERROR_SUCCESS when less files were read than requested.
This commit is contained in:
1 parent
bb769cbf85
commit
310999dcc4
1 file changed
+6
-1
@@ -2168,9 +2168,14 @@ ext_ReadFolder:
|
||||
mov [edx+8], ecx
|
||||
lea esp, [edi+32]
|
||||
mov ecx, 20/4
|
||||
lea edi, [edx+12]
|
||||
lea edx, [edx+12]
|
||||
xchg edi, edx
|
||||
xor eax, eax
|
||||
rep stosd
|
||||
cmp ebx, [edx+20] ; read files vs files to read
|
||||
jz @f
|
||||
movi eax, ERROR_END_OF_FILE
|
||||
@@:
|
||||
ret
|
||||
|
||||
.error_bad_len:
|
||||
|
||||
Reference in new issue
Block a user