Commit 1eb2c050 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Remove redundant ITypeLib2_AddRef's. Makes

LoadTypeLib/ITypeLib2_Release work.
parent cf983e9a
...@@ -1844,7 +1844,6 @@ ITypeInfoImpl * MSFT_DoTypeInfo( ...@@ -1844,7 +1844,6 @@ ITypeInfoImpl * MSFT_DoTypeInfo(
pcx->pTblDir->pTypeInfoTab.offset+count*sizeof(tiBase)); pcx->pTblDir->pTypeInfoTab.offset+count*sizeof(tiBase));
/* this is where we are coming from */ /* this is where we are coming from */
ptiRet->pTypeLib = pLibInfo; ptiRet->pTypeLib = pLibInfo;
ITypeLib2_AddRef((ITypeLib2 *)pLibInfo);
ptiRet->index=count; ptiRet->index=count;
/* fill in the typeattr fields */ /* fill in the typeattr fields */
FIXME("Assign constructor/destructor memid\n"); FIXME("Assign constructor/destructor memid\n");
...@@ -3055,7 +3054,6 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength) ...@@ -3055,7 +3054,6 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
} }
*ppTypeInfoImpl = (ITypeInfoImpl*)ITypeInfo_Constructor(); *ppTypeInfoImpl = (ITypeInfoImpl*)ITypeInfo_Constructor();
(*ppTypeInfoImpl)->pTypeLib = pTypeLibImpl; (*ppTypeInfoImpl)->pTypeLib = pTypeLibImpl;
ITypeLib2_AddRef((ITypeLib2 *)pTypeLibImpl);
(*ppTypeInfoImpl)->index = i; (*ppTypeInfoImpl)->index = i;
(*ppTypeInfoImpl)->Name = TLB_MultiByteToBSTR( (*ppTypeInfoImpl)->Name = TLB_MultiByteToBSTR(
pOtherTypeInfoBlks[i].name_offs + pOtherTypeInfoBlks[i].name_offs +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment