From 1658d5a20de4b12df539f3e5ecc11b81984684a4 Mon Sep 17 00:00:00 2001 From: Myah Caron Date: Sat, 23 Nov 2019 19:01:43 +0100 Subject: [PATCH] kernel32: Allow NtQueryDirectoryFile underfilling FileInformation. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47832 Signed-off-by: Myah Caron Signed-off-by: Alexandre Julliard --- 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 14a2d6b33a4..c3be67cc3c8 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,