MSI: Don't print an error on copy of duplicate files
Mike Hearn
mike at navi.cx
Sat Jun 4 10:05:42 CDT 2005
This prevents a harmless fixme in the iTunes installer if you try
and install it twice.
Mike Hearn <mh at codeweavers.com>
MSI: Don't print an error on copy of duplicate files
Index: dlls/msi/action.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/action.c,v
retrieving revision 1.133
diff -u -p -d -u -r1.133 action.c
--- dlls/msi/action.c 3 Jun 2005 11:24:04 -0000 1.133
+++ dlls/msi/action.c 4 Jun 2005 15:03:35 -0000
@@ -3452,6 +3452,12 @@ static UINT ACTION_DuplicateFiles(MSIPAC
rc = !CopyFileW(file_source,dest,TRUE);
else
rc = ERROR_SUCCESS;
+
+ if (rc == ERROR_FILE_EXISTS)
+ {
+ WARN("destination files already exist, duplicate install?\n");
+ rc = ERROR_SUCCESS;
+ }
if (rc != ERROR_SUCCESS)
ERR("Failed to copy file %s -> %s, last error %ld\n", debugstr_w(file_source), debugstr_w(dest_path), GetLastError());
More information about the wine-patches
mailing list