James Hawkins : msi: Handle the case where no files match the wildcard in MoveFiles.

Alexandre Julliard julliard at winehq.org
Thu Apr 3 05:43:50 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Wed Apr  2 17:41:47 2008 -0500

msi: Handle the case where no files match the wildcard in MoveFiles.

---

 dlls/msi/action.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 982c9f0..b19e015 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -5413,6 +5413,10 @@ static BOOL move_files_wildcard(LPWSTR source, LPWSTR dest, int options)
         msi_free(path);
     }
 
+    /* no files match the wildcard */
+    if (list_empty(&files.entry))
+        goto done;
+
     /* only the first wildcard match gets renamed to dest */
     file = LIST_ENTRY(list_head(&files.entry), FILE_LIST, entry);
     size = (strrchrW(file->dest, '\\') - file->dest) + lstrlenW(file->destname) + 2;




More information about the wine-cvs mailing list