netprofm: Clear the object pointer on failure in QueryInterface.

This commit is contained in:
Hans Leidekker 2015-08-27 15:04:07 +02:00 committed by Alexandre Julliard
parent 346dd728fb
commit 981460e84a
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ static HRESULT WINAPI connection_point_QueryInterface(
else
{
FIXME( "interface %s not implemented\n", debugstr_guid(riid) );
*obj = NULL;
return E_NOINTERFACE;
}
IConnectionPoint_AddRef( iface );
@ -388,6 +389,7 @@ static HRESULT WINAPI list_manager_QueryInterface(
else
{
FIXME( "interface %s not implemented\n", debugstr_guid(riid) );
*obj = NULL;
return E_NOINTERFACE;
}
INetworkListManager_AddRef( iface );