Huw Davies : kernel32: Give the non-wildcard case a chance of succeeding first time around.

Alexandre Julliard julliard at winehq.org
Wed Dec 4 14:43:35 CST 2013


Module: wine
Branch: master
Commit: 67545ed54c94e3541ae28f8c0e6dcf91dc87f4eb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=67545ed54c94e3541ae28f8c0e6dcf91dc87f4eb

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Dec  4 14:28:55 2013 +0000

kernel32: Give the non-wildcard case a chance of succeeding first time around.

---

 dlls/kernel32/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index 92c776d..bdae8f4 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -1974,7 +1974,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
         IO_STATUS_BLOCK io;
         BOOL has_wildcard = strpbrkW( info->mask.Buffer, wildcardsW ) != NULL;
 
-        info->data_size = has_wildcard ? 8192 : max_entry_size;
+        info->data_size = has_wildcard ? 8192 : max_entry_size * 2;
 
         while (info->data_size)
         {




More information about the wine-cvs mailing list