Myah Caron : kernel32: Allow NtQueryDirectoryFile underfilling FileInformation.

Alexandre Julliard julliard at winehq.org
Mon Apr 20 15:01:51 CDT 2020


Module: wine
Branch: oldstable
Commit: 825d60d32fc45a07f9b1be608c0b34fc6f97205b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=825d60d32fc45a07f9b1be608c0b34fc6f97205b

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>
(cherry picked from commit 1658d5a20de4b12df539f3e5ecc11b81984684a4)
Signed-off-by: Michael Stefaniuc <mstefani 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 ffd12155c9..3049a99df0 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -2112,7 +2112,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