rpcrt4: Tidy up CStdStubBuffer_QueryInterface.
This commit is contained in:
parent
dffd3e5034
commit
86aa95fd2b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue