Commit 99c03352 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 3fbe9db4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment