[PATCH] kernel32: don't read whole directory in FindFirstFile if no wildcard

Mark Harmstone hellas at burntcomma.com
Sun Feb 22 14:31:56 CST 2015


This changes the behaviour of FindFirstFileExW so that it only asks for a
single entry from NtQueryDirectoryFile is there's no wildcard. This halves
the speed of FindFirstFile, which is one of the major bottlenecks for
loading and rest times on Baldur's Gate 2.

---
 dlls/kernel32/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kernel32-don-t-read-whole-directory-in-FindFirstFile.patch
Type: text/x-patch
Size: 630 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150222/575e1d42/attachment.bin>


More information about the wine-patches mailing list