msi: reset all constants in ready_media_for_file

Aric Stewart aric at codeweavers.com
Tue Jul 12 08:57:36 CDT 2005


when working toward install on demand support we need to reset all the 
constant values so that multiple install process do not get confused by 
leftover values from the previous install.
-------------- next part --------------
Index: dlls/msi/files.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/files.c,v
retrieving revision 1.7
diff -u -r1.7 files.c
--- dlls/msi/files.c	11 Jul 2005 13:22:24 -0000	1.7
+++ dlls/msi/files.c	12 Jul 2005 13:56:26 -0000
@@ -462,6 +462,11 @@
     {
         HeapFree(GetProcessHeap(),0,last_path);
         HeapFree(GetProcessHeap(),0,last_volume);
+        last_sequence = 0;
+        last_path = NULL;
+        last_volume = NULL;
+        count = 0;
+        memset(source,0,sizeof(source));
         return ERROR_SUCCESS;
     }
 


More information about the wine-patches mailing list