Commit 1658d5a2 authored by Myah Caron's avatar Myah Caron Committed by Alexandre Julliard

kernel32: Allow NtQueryDirectoryFile underfilling FileInformation.

parent 389d1105
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment