msi: Fix crash with access to component.
authorAndré Hentschel <nerv@dawncrow.de>
Sat, 30 Jan 2010 13:01:58 +0000 (14:01 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 2 Feb 2010 10:47:19 +0000 (11:47 +0100)
dlls/msi/files.c

index 7e74dca96963ceacead643ea8d1fb366554473d5..b7af4d39416e1a8836ad2d82e158a84ff542dc3b 100644 (file)
@@ -365,7 +365,8 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
                         debugstr_w(component));
 
         /* the action taken was the same as the current install state */        
-        comp->Action = comp->Installed;
+        if (comp)
+            comp->Action = comp->Installed;
 
         return ERROR_SUCCESS;
     }