msi: Fix crash with access to component (try 2)

André Hentschel nerv at dawncrow.de
Sat Jan 30 07:01:58 CST 2010


---
 dlls/msi/files.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index 7e74dca..b7af4d3 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -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;
     }
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list