[2/2] msi: Avoid a crash in get_registered_local_package.

Hans Leidekker hans at codeweavers.com
Thu Apr 26 04:18:46 CDT 2012


---
 dlls/msi/package.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index ca836ec..2077396 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -1455,6 +1455,9 @@ static UINT get_registered_local_package( const WCHAR *product, const WCHAR *pac
     if (!strcmpiW( package, unsquashed ))
     {
         WCHAR *filename = msi_reg_get_val_str( props_key, INSTALLPROPERTY_LOCALPACKAGEW );
+        if (!filename)
+            goto done;
+
         strcpyW( localfile, filename );
         msi_free( filename );
         r = ERROR_SUCCESS;
-- 
1.7.10






More information about the wine-patches mailing list