kernel32: In FindFirstFileExW(), call NtQueryDirectoryFile() again to determine if it read all files.

Ken Thomases ken at codeweavers.com
Mon Feb 3 17:23:04 CST 2014


Previously, it only checked if the first call failed to fill the buffer.  This
is unreliable since the underlying implementation may be forced to return
a short buffer by the semantics of the system calls used.  In particular,
getdirentries() on Mac OS X can only read at the resolution of whole blocks
rather than individual directory entries for AFP-mounted volumes.
---
dlls/kernel32/file.c | 26 +++++++++++++++++++++-----
1 file changed, 21 insertions(+), 5 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kernel32-In-FindFirstFileExW-call-NtQueryDirectoryFi.patch
Type: text/x-patch
Size: 1504 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140203/a8ca9197/attachment.bin>


More information about the wine-patches mailing list