MSI: fix for DuplicateFiles
Aric Stewart
aric at codeweavers.com
Tue Jun 21 09:08:00 CDT 2005
Duplicate files should not fail if unable to get Destination Directory.
-------------- next part --------------
Index: dlls/msi/files.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/files.c,v
retrieving revision 1.2
diff -u -r1.2 files.c
--- dlls/msi/files.c 20 Jun 2005 15:33:22 -0000 1.2
+++ dlls/msi/files.c 21 Jun 2005 12:54:10 -0000
@@ -633,9 +633,14 @@
dest_path = resolve_folder(package, destkey, FALSE,FALSE,NULL);
if (!dest_path)
{
- ERR("Unable to get destination folder\n");
- HeapFree(GetProcessHeap(),0,file_source);
- return ERROR_FUNCTION_FAILED;
+ /* try a Property */
+ dest_path = load_dynamic_property(package, destkey, NULL);
+ if (!dest_path)
+ {
+ FIXME("Unable to get destination folder, try AppSearch properties\n");
+ HeapFree(GetProcessHeap(),0,file_source);
+ return ERROR_SUCCESS;
+ }
}
}
More information about the wine-patches
mailing list