Remove redundant ITypeLib2_AddRef's. Makes
LoadTypeLib/ITypeLib2_Release work.
This commit is contained in:
parent
cf983e9a7f
commit
1eb2c05070
|
@ -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)
|
||||||
}
|
}
|
||||||
*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 +
|
||||||
|
|
Loading…
Reference in New Issue