Dmitry Timoshkov wrote:
"jack" jack@itma.pwr.wroc.pl wrote:
@@ -3265,6 +3266,7 @@ return NULL; } *ppTypeInfoImpl = (ITypeInfoImpl*)ITypeInfo_Constructor();
pTypeLibImpl->ref++;
Are you sure you need this piece of the patch? It causes the following test program to fail:
No, I don't. In my case I need only this:
/* this is where we are coming from */ + ITypeLib2_AddRef((ITypeLib*)pLibInfo); ptiRet->pTypeLib = pLibInfo; ptiRet->index=count;
but I call ITypeLib_Release in ITypeInfo_Release so I thought I should increment ref here too.
Thanks, Jacek