Changeset 1656 for trunk/src


Ignore:
Timestamp:
Nov 9, 1999, 12:04:33 PM (26 years ago)
Author:
bird
Message:

Corrections for lpvtbl using ICOM_VTBL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/typelib.cpp

    r914 r1656  
    1 /* $Id: typelib.cpp,v 1.4 1999-09-12 21:51:03 davidr Exp $ */
     1/* $Id: typelib.cpp,v 1.5 1999-11-09 11:04:33 bird Exp $ */
    22/*
    33 *      TYPELIB
     
    2828 * -. some methods just return pointers to internal data structures, this is
    2929 *      partly laziness, partly I want to check how windows does it.
    30  * 
     30 *
    3131 */
    3232
     
    4646#include "winversion.h"
    4747/* FIXME: get rid of these */
    48 typedef struct ITypeInfoVtbl ITypeLib_VTable, *LPTYPEINFO_VTABLE ; 
    49 typedef struct ITypeLibVtbl *LPTYPELIB_VTABLE  ; 
     48typedef struct ITypeInfoVtbl ITypeLib_VTable, *LPTYPEINFO_VTABLE ;
     49typedef struct ITypeLibVtbl *LPTYPELIB_VTABLE  ;
    5050#include "typelib.h"
    5151
     
    5353DECLARE_DEBUG_CHANNEL(typelib)
    5454
    55  
     55
    5656/****************************************************************************
    5757 *              QueryPathOfRegTypeLib   [OLEAUT32.164]
     
    6060 */
    6161HRESULT WINAPI
    62 QueryPathOfRegTypeLib( 
     62QueryPathOfRegTypeLib(
    6363        REFGUID guid,   /* [in] referenced guid */
    6464        WORD wMaj,      /* [in] major version */
     
    135135    HRESULT res;
    136136    TRACE_(typelib)("('%s',%p)\n",debugstr_w(szFile),pptLib);
    137    
     137
    138138    p=HEAP_strdupWtoA(GetProcessHeap(),0,szFile);
    139139    res= TLB_ReadTypeLib(p, pptLib);
     
    148148 *              LoadRegTypeLib  [OLEAUT32.162]
    149149 */
    150 HRESULT WINAPI LoadRegTypeLib( 
     150HRESULT WINAPI LoadRegTypeLib(
    151151        REFGUID rguid,  /* [in] referenced guid */
    152152        WORD wVerMajor, /* [in] major version */
     
    169169    }
    170170    return res;
    171 }       
     171}
    172172
    173173
    174174/******************************************************************************
    175175 *              RegisterTypeLib [OLEAUT32.163]
    176  * Adds information about a type library to the System Registry           
     176 * Adds information about a type library to the System Registry
    177177 * NOTES
    178178 *    Docs: ITypeLib FAR * ptlib
     
    196196/******************************************************************************
    197197 *      UnRegisterTypeLib       [OLEAUT32.186]
    198  * Removes information about a type library from the System Registry           
     198 * Removes information about a type library from the System Registry
    199199 * NOTES
    200200 *
     
    209209        LCID lcid,      /* [in] locale id */
    210210        SYSKIND syskind)
    211 {   
     211{
    212212    char xriid[50];
    213213    WINE_StringFromCLSID((LPCLSID)libid,xriid);
     
    223223/* ITypeLib methods */
    224224static HRESULT WINAPI ITypeLib_fnQueryInterface( LPTYPELIB This, REFIID riid,
    225     VOID **ppvObject); 
    226 static ULONG WINAPI ITypeLib_fnAddRef( LPTYPELIB This); 
    227 static ULONG WINAPI ITypeLib_fnRelease( LPTYPELIB This); 
    228 static UINT WINAPI ITypeLib_fnGetTypeInfoCount( LPTYPELIB This); 
    229 static HRESULT WINAPI ITypeLib_fnGetTypeInfo( LPTYPELIB This, UINT index, 
    230     ITypeInfo **ppTInfo); 
     225    VOID **ppvObject);
     226static ULONG WINAPI ITypeLib_fnAddRef( LPTYPELIB This);
     227static ULONG WINAPI ITypeLib_fnRelease( LPTYPELIB This);
     228static UINT WINAPI ITypeLib_fnGetTypeInfoCount( LPTYPELIB This);
     229static HRESULT WINAPI ITypeLib_fnGetTypeInfo( LPTYPELIB This, UINT index,
     230    ITypeInfo **ppTInfo);
    231231
    232232static HRESULT WINAPI ITypeLib_fnGetTypeInfoType( LPTYPELIB This, UINT index,
    233     TYPEKIND *pTKind); 
     233    TYPEKIND *pTKind);
    234234
    235235static HRESULT WINAPI ITypeLib_fnGetTypeInfoOfGuid( LPTYPELIB This, REFGUID guid,
    236236    ITypeInfo **ppTinfo);
    237237
    238 static HRESULT WINAPI ITypeLib_fnGetLibAttr( LPTYPELIB This, 
    239     LPTLIBATTR *ppTLibAttr); 
     238static HRESULT WINAPI ITypeLib_fnGetLibAttr( LPTYPELIB This,
     239    LPTLIBATTR *ppTLibAttr);
    240240
    241241static HRESULT WINAPI ITypeLib_fnGetTypeComp( LPTYPELIB This,
    242     ITypeComp **ppTComp); 
     242    ITypeComp **ppTComp);
    243243
    244244static HRESULT WINAPI ITypeLib_fnGetDocumentation( LPTYPELIB This, INT index,
    245     BSTR *pBstrName, BSTR *pBstrDocString, DWORD *pdwHelpContext, 
     245    BSTR *pBstrName, BSTR *pBstrDocString, DWORD *pdwHelpContext,
    246246    BSTR *pBstrHelpFile);
    247247
     
    255255                TLIBATTR *pTLibAttr);
    256256
    257 static HRESULT WINAPI ITypeLib2_fnGetCustData( ITypeLib * This, REFGUID guid, 
    258         VARIANT *pVarVal); 
    259 
    260 static HRESULT WINAPI ITypeLib2_fnGetLibStatistics( ITypeLib * This, 
    261         UINT *pcUniqueNames, UINT *pcchUniqueNames); 
    262 
    263 static HRESULT WINAPI ITypeLib2_fnGetDocumentation2( ITypeLib * This, 
     257static HRESULT WINAPI ITypeLib2_fnGetCustData( ITypeLib * This, REFGUID guid,
     258        VARIANT *pVarVal);
     259
     260static HRESULT WINAPI ITypeLib2_fnGetLibStatistics( ITypeLib * This,
     261        UINT *pcUniqueNames, UINT *pcchUniqueNames);
     262
     263static HRESULT WINAPI ITypeLib2_fnGetDocumentation2( ITypeLib * This,
    264264        INT index, LCID lcid, BSTR *pbstrHelpString,
    265         INT *pdwHelpStringContext, BSTR *pbstrHelpStringDll); 
     265        INT *pdwHelpStringContext, BSTR *pbstrHelpStringDll);
    266266
    267267static HRESULT WINAPI ITypeLib2_fnGetAllCustData( ITypeLib * This,
     
    289289
    290290static HRESULT WINAPI ITypeInfo_fnQueryInterface( LPTYPEINFO This, REFIID riid,
    291     VOID **ppvObject); 
    292 static ULONG WINAPI ITypeInfo_fnAddRef( LPTYPEINFO This); 
    293 static ULONG WINAPI ITypeInfo_fnRelease( LPTYPEINFO This); 
     291    VOID **ppvObject);
     292static ULONG WINAPI ITypeInfo_fnAddRef( LPTYPEINFO This);
     293static ULONG WINAPI ITypeInfo_fnRelease( LPTYPEINFO This);
    294294static HRESULT WINAPI ITypeInfo_fnGetTypeAttr( LPTYPEINFO This,
    295         LPTYPEATTR  *ppTypeAttr); 
     295        LPTYPEATTR  *ppTypeAttr);
    296296
    297297static HRESULT WINAPI ITypeInfo_fnGetTypeComp( LPTYPEINFO This,
    298         ITypeComp  * *ppTComp); 
     298        ITypeComp  * *ppTComp);
    299299
    300300static HRESULT WINAPI ITypeInfo_fnGetFuncDesc( LPTYPEINFO This, UINT index,
    301         LPFUNCDESC  *ppFuncDesc); 
     301        LPFUNCDESC  *ppFuncDesc);
    302302
    303303static HRESULT WINAPI ITypeInfo_fnGetVarDesc( LPTYPEINFO This, UINT index,
    304         LPVARDESC  *ppVarDesc); 
     304        LPVARDESC  *ppVarDesc);
    305305
    306306static HRESULT WINAPI ITypeInfo_fnGetNames( LPTYPEINFO This, MEMBERID memid,
     
    309309
    310310static HRESULT WINAPI ITypeInfo_fnGetRefTypeOfImplType( LPTYPEINFO This,
    311         UINT index, HREFTYPE  *pRefType); 
     311        UINT index, HREFTYPE  *pRefType);
    312312
    313313static HRESULT WINAPI ITypeInfo_fnGetImplTypeFlags( LPTYPEINFO This,
    314         UINT index, INT  *pImplTypeFlags); 
     314        UINT index, INT  *pImplTypeFlags);
    315315
    316316static HRESULT WINAPI ITypeInfo_fnGetIDsOfNames( LPTYPEINFO This,
    317         LPOLESTR  *rgszNames, UINT cNames, MEMBERID  *pMemId); 
     317        LPOLESTR  *rgszNames, UINT cNames, MEMBERID  *pMemId);
    318318
    319319static HRESULT WINAPI ITypeInfo_fnInvoke( LPTYPEINFO This, VOID  *pIUnk,
    320         MEMBERID memid, UINT16 dwFlags, DISPPARAMS  *pDispParams, 
     320        MEMBERID memid, UINT16 dwFlags, DISPPARAMS  *pDispParams,
    321321        VARIANT  *pVarResult, EXCEPINFO  *pExcepInfo, UINT  *pArgErr);
    322322
    323323static HRESULT WINAPI ITypeInfo_fnGetDocumentation( LPTYPEINFO This,
    324         MEMBERID memid, BSTR  *pBstrName, BSTR  *pBstrDocString, 
    325         DWORD  *pdwHelpContext, BSTR  *pBstrHelpFile); 
     324        MEMBERID memid, BSTR  *pBstrName, BSTR  *pBstrDocString,
     325        DWORD  *pdwHelpContext, BSTR  *pBstrHelpFile);
    326326
    327327static HRESULT WINAPI ITypeInfo_fnGetDllEntry( LPTYPEINFO This,
    328328        MEMBERID memid, INVOKEKIND invKind, BSTR  *pBstrDllName,
    329         BSTR  *pBstrName, WORD  *pwOrdinal); 
     329        BSTR  *pBstrName, WORD  *pwOrdinal);
    330330
    331331static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo( LPTYPEINFO This,
    332         HREFTYPE hRefType, ITypeInfo  * *ppTInfo); 
     332        HREFTYPE hRefType, ITypeInfo  * *ppTInfo);
    333333
    334334static HRESULT WINAPI ITypeInfo_fnAddressOfMember( LPTYPEINFO This,
    335         MEMBERID memid, INVOKEKIND invKind, PVOID *ppv); 
    336 
    337 static HRESULT WINAPI ITypeInfo_fnCreateInstance( LPTYPEINFO This, 
    338         IUnknown *pUnk, REFIID riid, VOID  * *ppvObj); 
    339 
    340 static HRESULT WINAPI ITypeInfo_fnGetMops( LPTYPEINFO This, MEMBERID memid, 
     335        MEMBERID memid, INVOKEKIND invKind, PVOID *ppv);
     336
     337static HRESULT WINAPI ITypeInfo_fnCreateInstance( LPTYPEINFO This,
     338        IUnknown *pUnk, REFIID riid, VOID  * *ppvObj);
     339
     340static HRESULT WINAPI ITypeInfo_fnGetMops( LPTYPEINFO This, MEMBERID memid,
    341341        BSTR  *pBstrMops);
    342342
    343343
    344344static HRESULT WINAPI ITypeInfo_fnGetContainingTypeLib( LPTYPEINFO This,
    345         ITypeLib  * *ppTLib, UINT  *pIndex); 
     345        ITypeLib  * *ppTLib, UINT  *pIndex);
    346346
    347347static HRESULT WINAPI ITypeInfo_fnReleaseTypeAttr( LPTYPEINFO This,
    348         TYPEATTR *pTypeAttr); 
     348        TYPEATTR *pTypeAttr);
    349349
    350350static HRESULT WINAPI ITypeInfo_fnReleaseFuncDesc( LPTYPEINFO This,
    351         FUNCDESC *pFuncDesc); 
     351        FUNCDESC *pFuncDesc);
    352352
    353353static HRESULT WINAPI ITypeInfo_fnReleaseVarDesc( LPTYPEINFO This,
    354         VARDESC *pVarDesc); 
     354        VARDESC *pVarDesc);
    355355/* itypeinfo2 methods */
    356356static HRESULT WINAPI ITypeInfo2_fnGetTypeKind( ITypeInfo * This,
     
    477477{
    478478        DWORD bytesread=0;
    479        
     479
    480480        if ((   where != DO_NOT_SEEK &&
    481481                (0xffffffff == SetFilePointer( pcx->hFile, where, 0,FILE_BEGIN))
     
    526526}
    527527/*
    528  * read a value and fill a VARIANT structure 
     528 * read a value and fill a VARIANT structure
    529529 */
    530530static void TLB_ReadValue( VARIANT * pVar, int offset, TLBContext *pcx )
     
    536536        return;
    537537    }
    538     TLB_Read(&(pVar->vt), sizeof(VARTYPE), pcx, 
     538    TLB_Read(&(pVar->vt), sizeof(VARTYPE), pcx,
    539539        pcx->pTblDir->pCustData.offset + offset );
    540540    switch(pVar->vt){
     
    544544        case VT_I4  :
    545545        case VT_R4  :
    546         case VT_ERROR   : 
    547         case VT_BOOL    : 
    548         case VT_I1  : 
    549         case VT_UI1 : 
    550         case VT_UI2 : 
    551         case VT_UI4 : 
    552         case VT_INT : 
    553         case VT_UINT    : 
     546        case VT_ERROR   :
     547        case VT_BOOL    :
     548        case VT_I1  :
     549        case VT_UI1 :
     550        case VT_UI2 :
     551        case VT_UI4 :
     552        case VT_INT :
     553        case VT_UINT    :
    554554        case VT_VOID    : /* FIXME: is this right? */
    555         case VT_HRESULT : 
     555        case VT_HRESULT :
    556556            size=4; break;
    557557        case VT_R8  :
    558558        case VT_CY  :
    559         case VT_DATE    : 
    560         case VT_I8  : 
    561         case VT_UI8 : 
     559        case VT_DATE    :
     560        case VT_I8  :
     561        case VT_UI8 :
    562562        case VT_DECIMAL :  /* FIXME: is this right? */
    563563        case VT_FILETIME :
     
    578578    /* FIXME: this will not work AT ALL when the variant contains a pointer */
    579579        case VT_DISPATCH :
    580         case VT_VARIANT : 
    581         case VT_UNKNOWN : 
    582         case VT_PTR : 
     580        case VT_VARIANT :
     581        case VT_UNKNOWN :
     582        case VT_PTR :
    583583        case VT_SAFEARRAY :
    584         case VT_CARRAY  : 
    585         case VT_USERDEFINED : 
    586         case VT_LPSTR   : 
    587         case VT_LPWSTR  : 
    588         case VT_BLOB    : 
    589         case VT_STREAM  : 
    590         case VT_STORAGE : 
    591         case VT_STREAMED_OBJECT : 
    592         case VT_STORED_OBJECT   : 
    593         case VT_BLOB_OBJECT : 
    594         case VT_CF  : 
    595         case VT_CLSID   : 
    596         default: 
    597             size=0; 
     584        case VT_CARRAY  :
     585        case VT_USERDEFINED :
     586        case VT_LPSTR   :
     587        case VT_LPWSTR  :
     588        case VT_BLOB    :
     589        case VT_STREAM  :
     590        case VT_STORAGE :
     591        case VT_STREAMED_OBJECT :
     592        case VT_STORED_OBJECT   :
     593        case VT_BLOB_OBJECT :
     594        case VT_CF  :
     595        case VT_CLSID   :
     596        default:
     597            size=0;
    598598            FIXME_(ole)("VARTYPE %d is not supported, setting pointer to NULL\n",
    599599                pVar->vt);
     
    615615        count++;
    616616        pNew=(TLBCustData* )TLB_Alloc(sizeof(TLBCustData));
    617         TLB_Read(&entry, sizeof(entry), pcx, 
     617        TLB_Read(&entry, sizeof(entry), pcx,
    618618            pcx->pTblDir->pCDGuids.offset+offset);
    619619        TLB_ReadGuid(&(pNew->guid), entry.GuidOffset , pcx);
     
    637637                          int offset, TLBFuncDesc ** pptfd)
    638638{
    639     /* 
     639    /*
    640640     * member information is stored in a data structure at offset
    641641     * indicated by the memoffset field of the typeinfo structure
    642642     * There are several distinctive parts.
    643      * the first part starts with a field that holds the total length 
     643     * the first part starts with a field that holds the total length
    644644     * of this (first) part excluding this field. Then follow the records,
    645645     * for each member there is one record.
    646646     *
    647647     * First entry is always the length of the record (excluding this
    648      * length word). 
    649      * Rest of the record depends on the type of the member. If there is 
     648     * length word).
     649     * Rest of the record depends on the type of the member. If there is
    650650     * a field indicating the member type (function variable intereface etc)
    651651     * I have not found it yet. At this time we depend on the information
     
    654654     * Second follows an array sized nrMEM*sizeof(INT) with a memeber id
    655655     * for each member;
    656      * 
    657      * Third is a equal sized array with file offsets to the name entry 
     656     *
     657     * Third is a equal sized array with file offsets to the name entry
    658658     * of each member.
    659      * 
     659     *
    660660     * Forth and last (?) part is an array with offsets to the records in the
    661661     * first part of this file segment.
     
    671671        *pptfd=(TLBFuncDesc*)TLB_Alloc(sizeof(TLBFuncDesc));
    672672    /* name, eventually add to a hash table */
    673         TLB_Read(&nameoffset, sizeof(INT), pcx, 
     673        TLB_Read(&nameoffset, sizeof(INT), pcx,
    674674            offset + infolen + (cFuncs + cVars + i + 1) * sizeof(INT));
    675675        (*pptfd)->Name=TLB_ReadName(pcx, nameoffset);
     
    677677        TLB_Read(&reclength, sizeof(INT), pcx, recoffset);
    678678        reclength &=0x1ff;
    679         TLB_Read(pFuncRec, reclength - sizeof(INT), pcx, DO_NOT_SEEK) ; 
     679        TLB_Read(pFuncRec, reclength - sizeof(INT), pcx, DO_NOT_SEEK) ;
    680680    /* do the attributes */
    681681        nrattributes=(reclength-pFuncRec->nrargs*3*sizeof(int)-0x18)
     
    702702        }
    703703    /* fill the FuncDesc Structure */
    704         TLB_Read(&(*pptfd)->funcdesc.memid, sizeof(INT), pcx, 
     704        TLB_Read(&(*pptfd)->funcdesc.memid, sizeof(INT), pcx,
    705705            offset + infolen + ( i + 1) * sizeof(INT));
    706706        (*pptfd)->funcdesc.funckind = (tagFUNCKIND)((pFuncRec->FKCCIC) & 0x7);
     
    711711        (*pptfd)->funcdesc.oVft = pFuncRec->VtableOffset ;
    712712        (*pptfd)->funcdesc.wFuncFlags = LOWORD(pFuncRec->Flags)  ;
    713         TLB_GetTdesc(pcx, pFuncRec->DataType,   
     713        TLB_GetTdesc(pcx, pFuncRec->DataType,
    714714            &(*pptfd)->funcdesc.elemdescFunc.tdesc) ;
    715                                    
     715
    716716        /* do the parameters/arguments */
    717717        if(pFuncRec->nrargs){
     
    725725                pFuncRec->nrargs * sizeof(TLBParameterInfo));
    726726            for(j=0;j<pFuncRec->nrargs;j++){
    727                 TLB_GetTdesc(pcx, paraminfo.DataType,   
     727                TLB_GetTdesc(pcx, paraminfo.DataType,
    728728                    &(*pptfd)->funcdesc.lprgelemdescParam[j].tdesc) ;
    729729                V_UNION(&((*pptfd)->funcdesc.lprgelemdescParam[j]),
     
    748748                    pParamDesc->pparamdescex = (tagPARAMDESCEX*)TLB_Alloc(sizeof(PARAMDESCEX));
    749749                    pParamDesc->pparamdescex->cBytes= sizeof(PARAMDESCEX);
    750                     TLB_ReadValue(&(pParamDesc->pparamdescex->varDefaultValue), 
     750                    TLB_ReadValue(&(pParamDesc->pparamdescex->varDefaultValue),
    751751                        pInt[j], pcx);
    752752                }
     
    773773    int recoffset;
    774774    TLB_Read(&infolen,sizeof(INT), pcx, offset);
    775     TLB_Read(&recoffset,sizeof(INT), pcx, offset + infolen + 
     775    TLB_Read(&recoffset,sizeof(INT), pcx, offset + infolen +
    776776        ((cFuncs+cVars)*2+cFuncs + 1)*sizeof(INT));
    777777    recoffset += offset+sizeof(INT);
     
    779779        *pptvd=(TLBVarDesc*)TLB_Alloc(sizeof(TLBVarDesc));
    780780    /* name, eventually add to a hash table */
    781         TLB_Read(&nameoffset, sizeof(INT), pcx, 
     781        TLB_Read(&nameoffset, sizeof(INT), pcx,
    782782            offset + infolen + (cFuncs + cVars + i + 1) * sizeof(INT));
    783783        (*pptvd)->Name=TLB_ReadName(pcx, nameoffset);
     
    785785        TLB_Read(&reclength, sizeof(INT), pcx, recoffset);
    786786        reclength &=0xff;
    787         TLB_Read(pVarRec, reclength - sizeof(INT), pcx, DO_NOT_SEEK) ; 
     787        TLB_Read(pVarRec, reclength - sizeof(INT), pcx, DO_NOT_SEEK) ;
    788788    /* Optional data */
    789789        if(reclength >(6*sizeof(INT)) )
     
    795795            (*pptvd)->HelpStringContext=pVarRec->HelpStringContext;
    796796    /* fill the VarDesc Structure */
    797         TLB_Read(&(*pptvd)->vardesc.memid, sizeof(INT), pcx, 
     797        TLB_Read(&(*pptvd)->vardesc.memid, sizeof(INT), pcx,
    798798            offset + infolen + ( i + 1) * sizeof(INT));
    799799        (*pptvd)->vardesc.varkind = (tagVARKIND)pVarRec->VarKind;
    800800        (*pptvd)->vardesc.wVarFlags = pVarRec->Flags;
    801         TLB_GetTdesc(pcx, pVarRec->DataType,   
     801        TLB_GetTdesc(pcx, pVarRec->DataType,
    802802            &(*pptvd)->vardesc.elemdescVar.tdesc) ;
    803803/*   (*pptvd)->vardesc.lpstrSchema; is reserved (SDK) fixme?? */
    804804        if(pVarRec->VarKind == VAR_CONST ){
    805805            V_UNION(&((*pptvd)->vardesc),lpvarValue)=(VARIANT*)TLB_Alloc(sizeof(VARIANT));
    806             TLB_ReadValue(V_UNION(&((*pptvd)->vardesc),lpvarValue), 
     806            TLB_ReadValue(V_UNION(&((*pptvd)->vardesc),lpvarValue),
    807807                pVarRec->OffsValue, pcx);
    808808        }else
     
    816816 * If comes fom import, its an offset+1 in the ImpInfo table
    817817 * */
    818 static void TLB_DoRefType(TLBContext *pcx, 
     818static void TLB_DoRefType(TLBContext *pcx,
    819819                          int offset, TLBRefType ** pprtd)
    820820{
     
    824824        TLBImpInfo impinfo;
    825825        TLBImpLib *pImpLib=(pcx->pLibInfo->pImpLibs);
    826         TLB_Read(&impinfo, sizeof(impinfo), pcx, 
     826        TLB_Read(&impinfo, sizeof(impinfo), pcx,
    827827            pcx->pTblDir->pImpInfo.offset + (offset & 0xfffffffc));
    828828        for(j=0;pImpLib;j++){   /* search the known offsets of all import libraries */
     
    896896    ptiRet->TypeAttr.cbSizeVft=tiBase.cbSizeVft; /* FIXME: this is only the non inherited part */
    897897    if(ptiRet->TypeAttr.typekind == TKIND_ALIAS)
    898         TLB_GetTdesc(pcx, tiBase.datatype1, 
     898        TLB_GetTdesc(pcx, tiBase.datatype1,
    899899            &ptiRet->TypeAttr.tdescAlias) ;
    900900/*  FIXME: */
     
    913913    /* functions */
    914914    if(ptiRet->TypeAttr.cFuncs >0 )
    915         TLB_DoFuncs(pcx, ptiRet->TypeAttr.cFuncs ,ptiRet->TypeAttr.cVars, 
     915        TLB_DoFuncs(pcx, ptiRet->TypeAttr.cFuncs ,ptiRet->TypeAttr.cVars,
    916916        tiBase.memoffset, & ptiRet->funclist);
    917917    /* variables */
    918918    if(ptiRet->TypeAttr.cVars >0 )
    919         TLB_DoVars(pcx, ptiRet->TypeAttr.cFuncs ,ptiRet->TypeAttr.cVars, 
     919        TLB_DoVars(pcx, ptiRet->TypeAttr.cFuncs ,ptiRet->TypeAttr.cVars,
    920920        tiBase.memoffset, & ptiRet->varlist);
    921921    if(ptiRet->TypeAttr.cImplTypes >0 ){
    922922        if(ptiRet->TypeAttr.typekind == TKIND_COCLASS)
    923             TLB_DoImplTypes(pcx, ptiRet->TypeAttr.cImplTypes , 
     923            TLB_DoImplTypes(pcx, ptiRet->TypeAttr.cImplTypes ,
    924924                tiBase.datatype1, & ptiRet->impltypelist);
    925925        else if(ptiRet->TypeAttr.typekind != TKIND_DISPATCH){
     
    10741074            (tlbHeader.varflags & HELPDLLFLAG? 4 :0);
    10751075    /* now read the segment directory */
    1076     TLB_Read((void*)&tlbSegDir, sizeof(tlbSegDir), &cx, oStart + lPSegDir); 
     1076    TLB_Read((void*)&tlbSegDir, sizeof(tlbSegDir), &cx, oStart + lPSegDir);
    10771077    cx.pTblDir=&tlbSegDir;
    10781078    /* just check two entries */
     
    11481148                V_UNION(&(pLibInfo->pTypeDesc[i]),lpadesc)->cDims=td[2];
    11491149                for(j=0;j<td[2];j++){
    1150                     TLB_Read(& V_UNION(&(pLibInfo->pTypeDesc[i]),lpadesc)->rgbounds[j].cElements, 
     1150                    TLB_Read(& V_UNION(&(pLibInfo->pTypeDesc[i]),lpadesc)->rgbounds[j].cElements,
    11511151                        sizeof(INT), &cx, DO_NOT_SEEK);
    11521152                    TLB_Read(& V_UNION(&(pLibInfo->pTypeDesc[i]),lpadesc)
    1153                         ->rgbounds[j].lLbound, 
     1153                        ->rgbounds[j].lLbound,
    11541154                        sizeof(INT), &cx, DO_NOT_SEEK);
    11551155                }
     
    12111211    }
    12121212    *ppvObject=NULL;
    1213     if(IsEqualIID(riid, &IID_IUnknown) || 
     1213    if(IsEqualIID(riid, &IID_IUnknown) ||
    12141214            IsEqualIID(riid,&IID_ITypeLib)||
    12151215            IsEqualIID(riid,&IID_ITypeLib2))
    12161216        *ppvObject = This;
    12171217    if(*ppvObject){
    1218         (*(LPTYPELIB*)ppvObject)->lpvtbl->fnAddRef(This);
     1218        (ICOM_VTBL(*(LPTYPELIB*)ppvObject))->fnAddRef(This);
    12191219        TRACE_(typelib)("-- Interface: (%p)->(%p)\n",ppvObject,*ppvObject);
    12201220        return S_OK;
     
    12441244
    12451245/* ITypeLib::GetTypeInfoCount
    1246  * 
     1246 *
    12471247 * Returns the number of type descriptions in the type library
    12481248 */
     
    12581258 *etrieves the specified type description in the library.
    12591259 */
    1260 static HRESULT WINAPI ITypeLib_fnGetTypeInfo( LPTYPELIB iface, UINT index, 
     1260static HRESULT WINAPI ITypeLib_fnGetTypeInfo( LPTYPELIB iface, UINT index,
    12611261    ITypeInfo **ppTInfo)
    12621262{
     
    13141314        TRACE_(typelib)("(%p) guid %sx)\n",This,xriid);
    13151315    }
    1316     for(i=0,*ppTLBTInfo=This->pTypeInfo;*ppTLBTInfo && 
     1316    for(i=0,*ppTLBTInfo=This->pTypeInfo;*ppTLBTInfo &&
    13171317            !IsEqualIID(guid,&(*ppTLBTInfo)->TypeAttr.guid);i++)
    13181318        *ppTLBTInfo=(*ppTLBTInfo)->next;
     
    13311331 *
    13321332 */
    1333 static HRESULT WINAPI ITypeLib_fnGetLibAttr( LPTYPELIB iface, 
     1333static HRESULT WINAPI ITypeLib_fnGetLibAttr( LPTYPELIB iface,
    13341334    LPTLIBATTR *ppTLibAttr)
    13351335{
     
    13631363 */
    13641364static HRESULT WINAPI ITypeLib_fnGetDocumentation( LPTYPELIB iface, INT index,
    1365     BSTR *pBstrName, BSTR *pBstrDocString, DWORD *pdwHelpContext, 
     1365    BSTR *pBstrName, BSTR *pBstrDocString, DWORD *pdwHelpContext,
    13661366    BSTR *pBstrHelpFile)
    13671367{
     
    14211421        for(pVInfo=pTInfo->varlist;pVInfo;pVInfo=pVInfo->next) ;
    14221422            if(!strcmp(astr,pVInfo->Name)) goto ITypeLib_fnIsName_exit;
    1423        
     1423
    14241424    }
    14251425    *pfName=FALSE;
     
    14281428    TRACE_(typelib)("(%p)slow! search for %s: %s found!\n", This,
    14291429            debugstr_a(astr), *pfName?"NOT":"");
    1430    
     1430
    14311431    HeapFree( GetProcessHeap(), 0, astr );
    14321432    return S_OK;
     
    14681468
    14691469    *pcFound=j;
    1470    
     1470
    14711471    HeapFree( GetProcessHeap(), 0, astr );
    14721472    return S_OK;
     
    14891489 * gets the custom data
    14901490 */
    1491 static HRESULT WINAPI ITypeLib2_fnGetCustData( ITypeLib * iface, REFGUID guid, 
     1491static HRESULT WINAPI ITypeLib2_fnGetCustData( ITypeLib * iface, REFGUID guid,
    14921492        VARIANT *pVarVal)
    14931493{
     
    15161516 *
    15171517 */
    1518 static HRESULT WINAPI ITypeLib2_fnGetLibStatistics( ITypeLib * iface, 
     1518static HRESULT WINAPI ITypeLib2_fnGetLibStatistics( ITypeLib * iface,
    15191519        UINT *pcUniqueNames, UINT *pcchUniqueNames)
    15201520{
     
    15331533 *
    15341534 */
    1535 static HRESULT WINAPI ITypeLib2_fnGetDocumentation2( ITypeLib * iface, 
     1535static HRESULT WINAPI ITypeLib2_fnGetDocumentation2( ITypeLib * iface,
    15361536        INT index, LCID lcid, BSTR *pbstrHelpString,
    15371537        INT *pdwHelpStringContext, BSTR *pbstrHelpStringDll)
     
    15681568/* ITypeLib2::GetAllCustData
    15691569 *
    1570  * Gets all custom data items for the library. 
     1570 * Gets all custom data items for the library.
    15711571 *
    15721572 */
     
    15771577    TLBCustData *pCData;
    15781578    int i;
    1579     TRACE_(typelib)("(%p) returning %d items\n", This, This->ctCustData); 
     1579    TRACE_(typelib)("(%p) returning %d items\n", This, This->ctCustData);
    15801580    pCustData->prgCustData = (tagCUSTDATAITEM*)TLB_Alloc(This->ctCustData * sizeof(CUSTDATAITEM));
    15811581    if(pCustData->prgCustData ){
     
    16071607    }
    16081608    *ppvObject=NULL;
    1609     if(IsEqualIID(riid, &IID_IUnknown) || 
     1609    if(IsEqualIID(riid, &IID_IUnknown) ||
    16101610            IsEqualIID(riid,&IID_ITypeInfo)||
    16111611            IsEqualIID(riid,&IID_ITypeInfo2))
    16121612        *ppvObject = This;
    16131613    if(*ppvObject){
    1614         (*(LPTYPEINFO*)ppvObject)->lpvtbl->fnAddRef(iface);
     1614        (ICOM_VTBL(*(LPTYPEINFO*)ppvObject))->fnAddRef(iface);
    16151615        TRACE_(typelib)("-- Interface: (%p)->(%p)\n",ppvObject,*ppvObject);
    16161616        return S_OK;
     
    16821682        ICOM_THIS( TLBTypeInfo, iface);
    16831683    int i;
    1684     TLBFuncDesc * pFDesc; 
     1684    TLBFuncDesc * pFDesc;
    16851685    TRACE_(typelib)("(%p) index %d\n", This, index);
    16861686    for(i=0, pFDesc=This->funclist; i!=index && pFDesc; i++, pFDesc=pFDesc->next)
     
    16961696/* ITypeInfo::GetVarDesc
    16971697 *
    1698  * Retrieves a VARDESC structure that describes the specified variable. 
     1698 * Retrieves a VARDESC structure that describes the specified variable.
    16991699 *
    17001700 */
     
    17041704        ICOM_THIS( TLBTypeInfo, iface);
    17051705    int i;
    1706     TLBVarDesc * pVDesc; 
     1706    TLBVarDesc * pVDesc;
    17071707    TRACE_(typelib)("(%p) index %d\n", This, index);
    17081708    for(i=0, pVDesc=This->varlist; i!=index && pVDesc; i++, pVDesc=pVDesc->next)
     
    17261726{
    17271727        ICOM_THIS( TLBTypeInfo, iface);
    1728     TLBFuncDesc * pFDesc; 
    1729     TLBVarDesc * pVDesc; 
     1728    TLBFuncDesc * pFDesc;
     1729    TLBVarDesc * pVDesc;
    17301730    int i;
    17311731    TRACE_(typelib)("(%p) memid=0x%08lx Maxname=%d\n", This, memid,
     
    17401740            else
    17411741                rgBstrNames[i]=TLB_DupAtoBstr(pFDesc->pParamDesc[i-1].Name);
    1742                
     1742
    17431743        }
    17441744        *pcNames=i;
     
    17511751            *pcNames=1;
    17521752        }else{
    1753             if(This->TypeAttr.typekind==TKIND_INTERFACE && 
     1753            if(This->TypeAttr.typekind==TKIND_INTERFACE &&
    17541754                    This->TypeAttr.cImplTypes ){
    17551755                /* recursive search */
    17561756                ITypeInfo *pTInfo;
    17571757                HRESULT result;
    1758                 result=This->lpvtbl->fnGetRefTypeInfo(iface, 
     1758                result=This->lpvtbl->fnGetRefTypeInfo(iface,
    17591759                        This->impltypelist->reference, &pTInfo);
    17601760                if(SUCCEEDED(result)){
    1761                     result=pTInfo->lpvtbl->fnGetNames(pTInfo, memid, rgBstrNames,
     1761                    result=ICOM_VTBL(pTInfo)->fnGetNames(pTInfo, memid, rgBstrNames,
    17621762                            cMaxNames, pcNames);
    1763                     pTInfo->lpvtbl->fnRelease(pTInfo);
     1763                    ICOM_VTBL(pTInfo)->fnRelease(pTInfo);
    17641764                    return result;
    17651765                }
     
    18011801
    18021802/* ITypeInfo::GetImplTypeFlags
    1803  * 
    1804  * Retrieves the IMPLTYPEFLAGS enumeration for one implemented interface 
     1803 *
     1804 * Retrieves the IMPLTYPEFLAGS enumeration for one implemented interface
    18051805 * or base interface in a type description.
    18061806 */
     
    18301830{
    18311831        ICOM_THIS( TLBTypeInfo, iface);
    1832     TLBFuncDesc * pFDesc; 
    1833     TLBVarDesc * pVDesc; 
     1832    TLBFuncDesc * pFDesc;
     1833    TLBVarDesc * pVDesc;
    18341834    HRESULT ret=S_OK;
    18351835    PCHAR aszName= HEAP_strdupWtoA( GetProcessHeap(), 0, *rgszNames);
     
    18501850                else
    18511851                   ret=DISP_E_UNKNOWNNAME;
    1852                 HeapFree( GetProcessHeap(), 0, aszPar);         
     1852                HeapFree( GetProcessHeap(), 0, aszPar);
    18531853            };
    18541854            HeapFree (GetProcessHeap(), 0, aszName);
    18551855            return ret;
    18561856        }
    1857     }   
     1857    }
    18581858    for(pVDesc=This->varlist; pVDesc; pVDesc=pVDesc->next) {
    18591859        if( !strcmp(aszName, pVDesc->Name)) {
     
    18631863        }
    18641864    }
    1865     /* not found, see if this is and interface with an inheritance */       
    1866     if(This->TypeAttr.typekind==TKIND_INTERFACE && 
     1865    /* not found, see if this is and interface with an inheritance */
     1866    if(This->TypeAttr.typekind==TKIND_INTERFACE &&
    18671867            This->TypeAttr.cImplTypes ){
    18681868        /* recursive search */
    18691869        ITypeInfo *pTInfo;
    1870         ret=This->lpvtbl->fnGetRefTypeInfo(iface, 
     1870        ret=This->lpvtbl->fnGetRefTypeInfo(iface,
    18711871                This->impltypelist->reference, &pTInfo);
    18721872        if(SUCCEEDED(ret)){
    1873             ret=pTInfo->lpvtbl->fnGetIDsOfNames(pTInfo, rgszNames, cNames, pMemId );
    1874             pTInfo->lpvtbl->fnRelease(pTInfo);
     1873            ret=ICOM_VTBL(pTInfo)->fnGetIDsOfNames(pTInfo, rgszNames, cNames, pMemId );
     1874            ICOM_VTBL(pTInfo)->fnRelease(pTInfo);
    18751875            return ret;
    18761876        }
     
    18821882
    18831883/* ITypeInfo::Invoke
    1884  * 
     1884 *
    18851885 * Invokes a method, or accesses a property of an object, that implements the
    18861886 * interface described by the type description.
     
    18961896
    18971897/* ITypeInfo::GetDocumentation
    1898  * 
     1898 *
    18991899 * Retrieves the documentation string, the complete Help file name and path,
    19001900 * and the context ID for the Help topic for a specified type description.
     
    19051905{
    19061906        ICOM_THIS( TLBTypeInfo, iface);
    1907     TLBFuncDesc * pFDesc; 
    1908     TLBVarDesc * pVDesc; 
     1907    TLBFuncDesc * pFDesc;
     1908    TLBVarDesc * pVDesc;
    19091909    TRACE_(typelib)("(%p) memid %ld Name(%p) DocString(%p)"
    19101910           " HelpContext(%p) HelpFile(%p)\n",
     
    19341934
    19351935/*  ITypeInfo::GetDllEntry
    1936  * 
     1936 *
    19371937 * Retrieves a description or specification of an entry point for a function
    19381938 * in a DLL.
     
    19481948
    19491949/* ITypeInfo::GetRefTypeInfo
    1950  * 
     1950 *
    19511951 * If a type description references other type descriptions, it retrieves
    19521952 * the referenced type descriptions.
     
    19601960        ITypeLib *pTLib;
    19611961        int Index;
    1962         result=This->lpvtbl->fnGetContainingTypeLib(iface, &pTLib, 
     1962        result=This->lpvtbl->fnGetContainingTypeLib(iface, &pTLib,
    19631963                (UINT*)&Index);
    19641964        if(SUCCEEDED(result)){
    1965             result=pTLib->lpvtbl->fnGetTypeInfo(pTLib,
     1965            result=ICOM_VTBL(pTLib)->fnGetTypeInfo(pTLib,
    19661966                    HREFTYPE_INDEX(hRefType),
    19671967                    ppTInfo);
    1968             pTLib->lpvtbl->fnRelease(pTLib );
     1968            ICOM_VTBL(pTLib)->fnRelease(pTLib );
    19691969        }
    19701970    } else{
     
    20032003
    20042004/* ITypeInfo::AddressOfMember
    2005  * 
     2005 *
    20062006 * Retrieves the addresses of static functions or variables, such as those
    20072007 * defined in a DLL.
     
    20162016
    20172017/* ITypeInfo::CreateInstance
    2018  * 
    2019  * Creates a new instance of a type that describes a component object class 
     2018 *
     2019 * Creates a new instance of a type that describes a component object class
    20202020 * (coclass).
    20212021 */
    2022 static HRESULT WINAPI ITypeInfo_fnCreateInstance( LPTYPEINFO iface, 
    2023         IUnknown *pUnk, REFIID riid, VOID  **ppvObj) 
     2022static HRESULT WINAPI ITypeInfo_fnCreateInstance( LPTYPEINFO iface,
     2023        IUnknown *pUnk, REFIID riid, VOID  **ppvObj)
    20242024{
    20252025        ICOM_THIS( TLBTypeInfo, iface);
     
    20412041
    20422042/* ITypeInfo::GetContainingTypeLib
    2043  * 
     2043 *
    20442044 * Retrieves the containing type library and the index of the type description
    20452045 * within that type library.
     
    20512051    *ppTLib=(LPTYPELIB )(This->pTypeLib);
    20522052    *pIndex=This->index;
    2053     (*ppTLib)->lpvtbl->fnAddRef(*ppTLib);
     2053    ICOM_VTBL(*ppTLib)->fnAddRef(*ppTLib);
    20542054    TRACE_(typelib)("(%p) returns (%p) index %d!\n", This, *ppTLib, *pIndex);
    20552055    return S_OK;
     
    21112111 * Returns the type flags without any allocations. This returns a DWORD type
    21122112 * flag, which expands the type flags without growing the TYPEATTR (type
    2113  * attribute). 
     2113 * attribute).
    21142114 *
    21152115 */
     
    21362136    HRESULT result;
    21372137    /* FIXME: should check for invKind??? */
    2138     for(i=0, pFuncInfo=This->funclist;pFuncInfo && 
     2138    for(i=0, pFuncInfo=This->funclist;pFuncInfo &&
    21392139            memid != pFuncInfo->funcdesc.memid; i++, pFuncInfo=pFuncInfo->next);
    21402140    if(pFuncInfo){
     
    21532153 *
    21542154 * Binds to a specific member based on a known DISPID, where the member name
    2155  * is not known (for example, when binding to a default member). 
     2155 * is not known (for example, when binding to a default member).
    21562156 *
    21572157 */
     
    21632163    int i;
    21642164    HRESULT result;
    2165     for(i=0, pVarInfo=This->varlist; pVarInfo && 
     2165    for(i=0, pVarInfo=This->varlist; pVarInfo &&
    21662166            memid != pVarInfo->vardesc.memid; i++, pVarInfo=pVarInfo->next)
    21672167        ;
     
    22122212        ICOM_THIS( TLBTypeInfo, iface);
    22132213    TLBCustData *pCData=NULL;
    2214     TLBFuncDesc * pFDesc; 
     2214    TLBFuncDesc * pFDesc;
    22152215    int i;
    22162216    for(i=0, pFDesc=This->funclist; i!=index && pFDesc; i++,
     
    22402240static HRESULT WINAPI ITypeInfo2_fnGetParamCustData( ITypeInfo * iface,
    22412241    UINT indexFunc, UINT indexParam, REFGUID guid, VARIANT *pVarVal)
    2242 {   
     2242{
    22432243        ICOM_THIS( TLBTypeInfo, iface);
    22442244    TLBCustData *pCData=NULL;
    2245     TLBFuncDesc * pFDesc; 
     2245    TLBFuncDesc * pFDesc;
    22462246    int i;
    22472247    for(i=0, pFDesc=This->funclist; i!=indexFunc && pFDesc; i++,
     
    22492249        ;
    22502250    if(pFDesc && indexParam >=0 && indexParam<pFDesc->funcdesc.cParams)
    2251         for(pCData=pFDesc->pParamDesc[indexParam].pCustData; pCData; 
     2251        for(pCData=pFDesc->pParamDesc[indexParam].pCustData; pCData;
    22522252                pCData = pCData->next)
    22532253            if( IsEqualIID(guid, &pCData->guid)) break;
     
    22722272static HRESULT WINAPI ITypeInfo2_fnGetVarCustData( ITypeInfo * iface,
    22732273    UINT index, REFGUID guid, VARIANT *pVarVal)
    2274 {   
     2274{
    22752275        ICOM_THIS( TLBTypeInfo, iface);
    22762276    TLBCustData *pCData=NULL;
    2277     TLBVarDesc * pVDesc; 
     2277    TLBVarDesc * pVDesc;
    22782278    int i;
    22792279    for(i=0, pVDesc=This->varlist; i!=index && pVDesc; i++,
     
    23032303static HRESULT WINAPI ITypeInfo2_fnGetImplTypeCustData( ITypeInfo * iface,
    23042304    UINT index, REFGUID guid, VARIANT *pVarVal)
    2305 {   
     2305{
    23062306        ICOM_THIS( TLBTypeInfo, iface);
    23072307    TLBCustData *pCData=NULL;
    2308     TLBRefType * pRDesc; 
     2308    TLBRefType * pRDesc;
    23092309    int i;
    23102310    for(i=0, pRDesc=This->impltypelist; i!=index && pRDesc; i++,
     
    23292329
    23302330/* ITypeInfo2::GetDocumentation2
    2331  * 
     2331 *
    23322332 * Retrieves the documentation string, the complete Help file name and path,
    23332333 * the localization context to use, and the context ID for the library Help
     
    23402340{
    23412341        ICOM_THIS( TLBTypeInfo, iface);
    2342     TLBFuncDesc * pFDesc; 
    2343     TLBVarDesc * pVDesc; 
     2342    TLBFuncDesc * pFDesc;
     2343    TLBVarDesc * pVDesc;
    23442344    TRACE_(typelib)("(%p) memid %ld lcid(0x%lx)  HelpString(%p) "
    23452345           "HelpStringContext(%p) HelpStringDll(%p)\n",
     
    23882388/* ITypeInfo2::GetAllCustData
    23892389 *
    2390  * Gets all custom data items for the Type info. 
     2390 * Gets all custom data items for the Type info.
    23912391 *
    23922392 */
     
    23972397    TLBCustData *pCData;
    23982398    int i;
    2399     TRACE_(typelib)("(%p) returning %d items\n", This, This->ctCustData); 
     2399    TRACE_(typelib)("(%p) returning %d items\n", This, This->ctCustData);
    24002400    pCustData->prgCustData = (tagCUSTDATAITEM*)TLB_Alloc(This->ctCustData * sizeof(CUSTDATAITEM));
    24012401    if(pCustData->prgCustData ){
     
    24222422        ICOM_THIS( TLBTypeInfo, iface);
    24232423    TLBCustData *pCData;
    2424     TLBFuncDesc * pFDesc; 
     2424    TLBFuncDesc * pFDesc;
    24252425    int i;
    2426     TRACE_(typelib)("(%p) index %d\n", This, index); 
     2426    TRACE_(typelib)("(%p) index %d\n", This, index);
    24272427    for(i=0, pFDesc=This->funclist; i!=index && pFDesc; i++,
    24282428            pFDesc=pFDesc->next)
     
    24582458        ICOM_THIS( TLBTypeInfo, iface);
    24592459    TLBCustData *pCData=NULL;
    2460     TLBFuncDesc * pFDesc; 
     2460    TLBFuncDesc * pFDesc;
    24612461    int i;
    2462     TRACE_(typelib)("(%p) index %d\n", This, indexFunc); 
     2462    TRACE_(typelib)("(%p) index %d\n", This, indexFunc);
    24632463    for(i=0, pFDesc=This->funclist; i!=indexFunc && pFDesc; i++,
    24642464            pFDesc=pFDesc->next)
    24652465        ;
    24662466    if(pFDesc && indexParam >=0 && indexParam<pFDesc->funcdesc.cParams){
    2467         pCustData->prgCustData =(tagCUSTDATAITEM*) 
     2467        pCustData->prgCustData =(tagCUSTDATAITEM*)
    24682468            TLB_Alloc(pFDesc->pParamDesc[indexParam].ctCustData *
    24692469                    sizeof(CUSTDATAITEM));
     
    24952495        ICOM_THIS( TLBTypeInfo, iface);
    24962496    TLBCustData *pCData;
    2497     TLBVarDesc * pVDesc; 
     2497    TLBVarDesc * pVDesc;
    24982498    int i;
    2499     TRACE_(typelib)("(%p) index %d\n", This, index); 
     2499    TRACE_(typelib)("(%p) index %d\n", This, index);
    25002500    for(i=0, pVDesc=This->varlist; i!=index && pVDesc; i++,
    25012501            pVDesc=pVDesc->next)
     
    25312531        ICOM_THIS( TLBTypeInfo, iface);
    25322532    TLBCustData *pCData;
    2533     TLBRefType * pRDesc; 
     2533    TLBRefType * pRDesc;
    25342534    int i;
    2535     TRACE_(typelib)("(%p) index %d\n", This, index); 
     2535    TRACE_(typelib)("(%p) index %d\n", This, index);
    25362536    for(i=0, pRDesc=This->impltypelist; i!=index && pRDesc; i++,
    25372537            pRDesc=pRDesc->next)
Note: See TracChangeset for help on using the changeset viewer.