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:
parent
0d23ecd9ec
commit
5e4472d425
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue