diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c index 1437c07daab..1aa41de7e66 100644 --- a/dlls/shell32/shlfileop.c +++ b/dlls/shell32/shlfileop.c @@ -824,6 +824,8 @@ static void parse_wildcard_files(FILE_LIST *flList, LPWSTR szFile, LPDWORD pdwLi LPWSTR szFullPath; BOOL res; + if (hFile == INVALID_HANDLE_VALUE) return; + for (res = TRUE; res; res = FindNextFileW(hFile, &wfd)) { if (IsDotDir(wfd.cFileName)) continue;