Alexandre Julliard : shell32: Avoid using garbage data in wildcard expansion.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 11 10:34:47 CST 2006


Module: wine
Branch: master
Commit: a051487d3b6eb0fb8bdea80c8326d8b325c95c7d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a051487d3b6eb0fb8bdea80c8326d8b325c95c7d

Author: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list