Myah Caron : kernel32: Allow NtQueryDirectoryFile underfilling FileInformation.

Alexandre Julliard julliard at winehq.org
Mon Nov 25 16:41:55 CST 2019


Module: wine
Branch: master
Commit: 1658d5a20de4b12df539f3e5ecc11b81984684a4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1658d5a20de4b12df539f3e5ecc11b81984684a4

Author: Myah Caron <qsniyg at mail.com>
Date:   Sat Nov 23 19:01:43 2019 +0100

kernel32: Allow NtQueryDirectoryFile underfilling FileInformation.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47832
Signed-off-by: Myah Caron <qsniyg at mail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 14a2d6b33a..c3be67cc3c 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -801,7 +801,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
         }
 
         info->data_len = io.Information;
-        if (!has_wildcard || info->data_len < info->data_size - max_entry_size)
+        if (!has_wildcard)
         {
             if (has_wildcard)  /* release unused buffer space */
                 HeapReAlloc( GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY,




More information about the wine-cvs mailing list