atl: AddRef the object being returned in AtlInternalQueryInterface, not "this".

This commit is contained in:
Rob Shearman 2007-04-03 18:14:22 +01:00 committed by Alexandre Julliard
parent 3fbe9db433
commit 99c0335222

View file

@ -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