msi: Avoid a crash in get_registered_local_package.
This commit is contained in:
parent
fde66de6a5
commit
89e95aa92c
|
@ -1455,6 +1455,9 @@ static UINT get_registered_local_package( const WCHAR *product, const WCHAR *pac
|
||||||
if (!strcmpiW( package, unsquashed ))
|
if (!strcmpiW( package, unsquashed ))
|
||||||
{
|
{
|
||||||
WCHAR *filename = msi_reg_get_val_str( props_key, INSTALLPROPERTY_LOCALPACKAGEW );
|
WCHAR *filename = msi_reg_get_val_str( props_key, INSTALLPROPERTY_LOCALPACKAGEW );
|
||||||
|
if (!filename)
|
||||||
|
goto done;
|
||||||
|
|
||||||
strcpyW( localfile, filename );
|
strcpyW( localfile, filename );
|
||||||
msi_free( filename );
|
msi_free( filename );
|
||||||
r = ERROR_SUCCESS;
|
r = ERROR_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue