[PATCH] kernel32: Allow NtQueryDirectoryFile underfilling FileInformation

qs niyg qsniyg at mail.com
Sat Nov 23 08:33:19 CST 2019


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47832
Signed-Off-by: Myah Caron <qsniyg at mail.com>
---
 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,
--
2.24.0





More information about the wine-devel mailing list