msi: Allow NULL parameters to be passed to the local MsiSetProperty.
This commit is contained in:
parent
ef00028407
commit
1d42de71ea
|
@ -1345,7 +1345,7 @@ UINT WINAPI MsiSetPropertyW( MSIHANDLE hInstall, LPCWSTR szName, LPCWSTR szValue
|
||||||
if( !package )
|
if( !package )
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
BSTR name, value;
|
BSTR name = NULL, value = NULL;
|
||||||
IWineMsiRemotePackage *remote_package;
|
IWineMsiRemotePackage *remote_package;
|
||||||
|
|
||||||
remote_package = (IWineMsiRemotePackage *)msi_get_remote( hInstall );
|
remote_package = (IWineMsiRemotePackage *)msi_get_remote( hInstall );
|
||||||
|
@ -1354,7 +1354,7 @@ UINT WINAPI MsiSetPropertyW( MSIHANDLE hInstall, LPCWSTR szName, LPCWSTR szValue
|
||||||
|
|
||||||
name = SysAllocString( szName );
|
name = SysAllocString( szName );
|
||||||
value = SysAllocString( szValue );
|
value = SysAllocString( szValue );
|
||||||
if (!name || !value)
|
if ((!name && szName) || (!value && szValue))
|
||||||
{
|
{
|
||||||
SysFreeString( name );
|
SysFreeString( name );
|
||||||
SysFreeString( value );
|
SysFreeString( value );
|
||||||
|
|
Loading…
Reference in New Issue