rpcrt4: Tidy up CStdStubBuffer_QueryInterface.

This commit is contained in:
Huw Davies 2006-08-30 14:57:20 +01:00 committed by Alexandre Julliard
parent dffd3e5034
commit 86aa95fd2b
1 changed files with 6 additions and 4 deletions

View File

@ -92,12 +92,14 @@ HRESULT WINAPI CStdStubBuffer_QueryInterface(LPRPCSTUBBUFFER iface,
CStdStubBuffer *This = (CStdStubBuffer *)iface; CStdStubBuffer *This = (CStdStubBuffer *)iface;
TRACE("(%p)->QueryInterface(%s,%p)\n",This,debugstr_guid(riid),obj); TRACE("(%p)->QueryInterface(%s,%p)\n",This,debugstr_guid(riid),obj);
if (IsEqualGUID(&IID_IUnknown,riid) || if (IsEqualIID(&IID_IUnknown, riid) ||
IsEqualGUID(&IID_IRpcStubBuffer,riid)) { IsEqualIID(&IID_IRpcStubBuffer, riid))
*obj = This; {
This->RefCount++; IUnknown_AddRef(iface);
*obj = iface;
return S_OK; return S_OK;
} }
*obj = NULL;
return E_NOINTERFACE; return E_NOINTERFACE;
} }