Module: wine Branch: master Commit: a051487d3b6eb0fb8bdea80c8326d8b325c95c7d URL: http://source.winehq.org/git/wine.git/?a=commit;h=a051487d3b6eb0fb8bdea80c83...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Dec 11 15:37:35 2006 +0100
shell32: Avoid using garbage data in wildcard expansion.
---
dlls/shell32/shlfileop.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c index 1437c07..1aa41de 100644 --- a/dlls/shell32/shlfileop.c +++ b/dlls/shell32/shlfileop.c @@ -824,6 +824,8 @@ static void parse_wildcard_files(FILE_LI LPWSTR szFullPath; BOOL res;
+ if (hFile == INVALID_HANDLE_VALUE) return; + for (res = TRUE; res; res = FindNextFileW(hFile, &wfd)) { if (IsDotDir(wfd.cFileName)) continue;