Commit a051487d authored by Alexandre Julliard's avatar Alexandre Julliard

shell32: Avoid using garbage data in wildcard expansion.

parent 055f8712
...@@ -824,6 +824,8 @@ static void parse_wildcard_files(FILE_LIST *flList, LPWSTR szFile, LPDWORD pdwLi ...@@ -824,6 +824,8 @@ static void parse_wildcard_files(FILE_LIST *flList, LPWSTR szFile, LPDWORD pdwLi
LPWSTR szFullPath; LPWSTR szFullPath;
BOOL res; BOOL res;
if (hFile == INVALID_HANDLE_VALUE) return;
for (res = TRUE; res; res = FindNextFileW(hFile, &wfd)) for (res = TRUE; res; res = FindNextFileW(hFile, &wfd))
{ {
if (IsDotDir(wfd.cFileName)) continue; if (IsDotDir(wfd.cFileName)) continue;
......
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