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

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:57 CST 2014


Module: wine
Branch: stable
Commit: 2d2d46b2f1dd2cb3dfd52d1557e1948a5a8bbf56
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2d2d46b2f1dd2cb3dfd52d1557e1948a5a8bbf56

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.

(cherry picked from commit 67545ed54c94e3541ae28f8c0e6dcf91dc87f4eb)

---

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

diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index 89e0fad..3239696 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -1952,7 +1952,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