msi: Avoid a crash in get_registered_local_package.

This commit is contained in:
Hans Leidekker 2012-04-26 11:18:46 +02:00 committed by Alexandre Julliard
parent fde66de6a5
commit 89e95aa92c

View file

@ -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;