wbemdisp: Handle NULL signatures in init_members.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47709
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-09-02 23:49:43 +02:00 committed by Alexandre Julliard
parent 0d23ecd9ec
commit 5e4472d425
1 changed files with 4 additions and 4 deletions

View File

@ -618,8 +618,8 @@ static HRESULT init_members( struct object *object )
{
count++;
SysFreeString( name );
IWbemClassObject_Release( sig_in );
IWbemClassObject_Release( sig_out );
if (sig_in) IWbemClassObject_Release( sig_in );
if (sig_out) IWbemClassObject_Release( sig_out );
}
IWbemClassObject_EndMethodEnumeration( object->object );
}
@ -657,8 +657,8 @@ static HRESULT init_members( struct object *object )
IWbemClassObject_EndMethodEnumeration( object->object );
goto error;
}
IWbemClassObject_Release( sig_in );
IWbemClassObject_Release( sig_out );
if (sig_in) IWbemClassObject_Release( sig_in );
if (sig_out) IWbemClassObject_Release( sig_out );
TRACE( "added method %s\n", debugstr_w(name) );
}
IWbemClassObject_EndMethodEnumeration( object->object );