Problem with ITypeInfo

Jacek Caban jack at itma.pwr.wroc.pl
Mon Aug 9 06:11:34 CDT 2004


Dmitry Timoshkov wrote:

>"jack" <jack at 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




More information about the wine-devel mailing list