Module: wine Branch: master Commit: 981460e84a5c82982a82971f3954f27393cdb126 URL: http://source.winehq.org/git/wine.git/?a=commit;h=981460e84a5c82982a82971f39...
Author: Hans Leidekker hans@codeweavers.com Date: Thu Aug 27 15:04:07 2015 +0200
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 cd51d37..ee0f7b7 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 );