Commit 67545ed5 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

kernel32: Give the non-wildcard case a chance of succeeding first time around.

parent 9be5df10
......@@ -1974,7 +1974,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
IO_STATUS_BLOCK io;
BOOL has_wildcard = strpbrkW( info->mask.Buffer, wildcardsW ) != NULL;
info->data_size = has_wildcard ? 8192 : max_entry_size;
info->data_size = has_wildcard ? 8192 : max_entry_size * 2;
while (info->data_size)
{
......
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