atl: AddRef the object being returned in AtlInternalQueryInterface, not "this".
This commit is contained in:
parent
3fbe9db433
commit
99c0335222
|
@ -235,7 +235,7 @@ HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pE
|
|||
{
|
||||
TRACE("Offset\n");
|
||||
*ppvObject = ((LPSTR)this+pEntries[i].dw);
|
||||
IUnknown_AddRef((IUnknown*)this);
|
||||
IUnknown_AddRef((IUnknown*)*ppvObject);
|
||||
rc = S_OK;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue