mirror of
https://github.com/reactos/wine.git
synced 2025-03-04 10:47:49 +00:00
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…
x
Reference in New Issue
Block a user