mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
msi: Avoid a crash in get_registered_local_package.
This commit is contained in:
parent
fde66de6a5
commit
89e95aa92c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue