mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +00:00
atl: AddRef the object being returned in AtlInternalQueryInterface, not "this".
This commit is contained in:
parent
3fbe9db433
commit
99c0335222
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue