diff --git a/dlls/atl/atl_main.c b/dlls/atl/atl_main.c index b03effc7958..69d62e70f67 100644 --- a/dlls/atl/atl_main.c +++ b/dlls/atl/atl_main.c @@ -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