ole32: Remove spurious AddRef of returned object on retrieval of an interface from the global interface table.

This commit is contained in:
Rob Shearman 2007-05-22 10:32:55 +01:00 committed by Alexandre Julliard
parent 7d90b6ce29
commit 30cc21196e
2 changed files with 0 additions and 5 deletions

View File

@ -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;
}

View File

@ -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);