mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
ole32: Remove spurious AddRef of returned object on retrieval of an interface from the global interface table.
This commit is contained in:
parent
7d90b6ce29
commit
30cc21196e
@ -262,7 +262,6 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal(
|
||||
{
|
||||
StdGITEntry* entry;
|
||||
HRESULT hres;
|
||||
LPUNKNOWN lpUnk;
|
||||
IStream *stream;
|
||||
|
||||
TRACE("dwCookie=0x%x, riid=%s, ppv=%p\n", dwCookie, debugstr_guid(riid), ppv);
|
||||
@ -296,9 +295,6 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal(
|
||||
return hres;
|
||||
}
|
||||
|
||||
/* addref it */
|
||||
lpUnk = *ppv;
|
||||
IUnknown_AddRef(lpUnk);
|
||||
TRACE("ppv=%p\n", *ppv);
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -2651,7 +2651,6 @@ static void test_globalinterfacetable(void)
|
||||
hr = IGlobalInterfaceTable_RevokeInterfaceFromGlobal(git, cookie);
|
||||
ok_ole_success(hr, IGlobalInterfaceTable_RevokeInterfaceFromGlobal);
|
||||
|
||||
todo_wine
|
||||
ok_no_locks();
|
||||
|
||||
IGlobalInterfaceTable_Release(git);
|
||||
|
Loading…
Reference in New Issue
Block a user