Commit 1d42de71 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Allow NULL parameters to be passed to the local MsiSetProperty.

parent ef000284
......@@ -1345,7 +1345,7 @@ UINT WINAPI MsiSetPropertyW( MSIHANDLE hInstall, LPCWSTR szName, LPCWSTR szValue
if( !package )
{
HRESULT hr;
BSTR name, value;
BSTR name = NULL, value = NULL;
IWineMsiRemotePackage *remote_package;
remote_package = (IWineMsiRemotePackage *)msi_get_remote( hInstall );
......@@ -1354,7 +1354,7 @@ UINT WINAPI MsiSetPropertyW( MSIHANDLE hInstall, LPCWSTR szName, LPCWSTR szValue
name = SysAllocString( szName );
value = SysAllocString( szValue );
if (!name || !value)
if ((!name && szName) || (!value && szValue))
{
SysFreeString( name );
SysFreeString( value );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment