MSI: ITERATE_WriteRegistryValues component null check

Johan Dahlin jdahlin at async.com.br
Tue Aug 23 19:19:48 CDT 2005


This adds a null check for component.

Together with my last patch makes the Python 2.4.1 msi install under wine 
(unattended install).
-------------- next part --------------
Index: action.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/action.c,v
retrieving revision 1.181
diff -u -B -p -u -r1.181 action.c
--- action.c	23 Aug 2005 18:15:44 -0000	1.181
+++ action.c	24 Aug 2005 00:02:48 -0000
@@ -1992,6 +1992,8 @@ static UINT ITERATE_WriteRegistryValues(
 
     component = MSI_RecordGetString(row, 6);
     comp = get_loaded_component(package,component);
+    if (!comp)
+        return ERROR_SUCCESS;
 
     if (!ACTION_VerifyComponentForAction(package, comp, INSTALLSTATE_LOCAL))
     {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jdahlin.vcf
Type: text/x-vcard
Size: 414 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050823/b34e4682/jdahlin.vcf


More information about the wine-patches mailing list