From 981460e84a5c82982a82971f3954f27393cdb126 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 27 Aug 2015 15:04:07 +0200 Subject: [PATCH] netprofm: Clear the object pointer on failure in QueryInterface. --- dlls/netprofm/list.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/netprofm/list.c b/dlls/netprofm/list.c index cd51d372b5a..ee0f7b71d37 100644 --- a/dlls/netprofm/list.c +++ b/dlls/netprofm/list.c @@ -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 );