Ignore:
Timestamp:
Sep 2, 1999, 7:25:19 PM (26 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/new/shellole.cpp

    r791 r795  
    6666        WINE_StringFromCLSID(refiid,xiid);
    6767        if (unknownouter)
    68                 WINE_StringFromCLSID(unknownouter,xuout);
     68                WINE_StringFromCLSID((const CLSID*)unknownouter,xuout);
    6969       
    7070        TRACE("(%p,\n\tCLSID:\t%s\n\tUOUT:\t%s\n\tIID:\t%s,%p)\n",
     
    140140{
    141141        if (VERSION_OsIsUnicode())
    142           return SHCLSIDFromStringW (clsid, id);
    143         return SHCLSIDFromStringA (clsid, id);
     142          return SHCLSIDFromStringW ((LPWSTR)clsid, id);
     143        return SHCLSIDFromStringA ((LPSTR)clsid, id);
    144144}
    145145
     
    178178          if(lpclf)
    179179          {
    180             hres = IClassFactory_CreateInstance(lpclf,NULL,(REFIID)&IID_IShellFolder, (void*)&pdesktopfolder);
     180            hres = IClassFactory_CreateInstance(lpclf,NULL,(REFIID)&IID_IShellFolder, (LPVOID*)&pdesktopfolder);
    181181            IClassFactory_Release(lpclf);
    182182          }
     
    206206} IClassFactoryImpl;
    207207
    208 static ICOM_VTABLE(IClassFactory) clfvt;
    209 
    210 /**************************************************************************
    211  *  IClassFactory_Constructor
    212  */
    213 
    214 LPCLASSFACTORY IClassFactory_Constructor(REFCLSID rclsid)
    215 {
    216         IClassFactoryImpl* lpclf;
    217 
    218         lpclf= (IClassFactoryImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IClassFactoryImpl));
    219         lpclf->ref = 1;
    220         lpclf->lpvtbl = &clfvt;
    221         lpclf->rclsid = (CLSID*)rclsid;
    222 
    223         TRACE("(%p)->()\n",lpclf);
    224         shell32_ObjCount++;
    225         return (LPCLASSFACTORY)lpclf;
    226 }
     208//static ICOM_VTABLE(IClassFactory) clfvt;
     209
    227210/**************************************************************************
    228211 *  IClassFactory_QueryInterface
     
    348331
    349332/**************************************************************************
     333 *  IClassFactory_Constructor
     334 */
     335
     336LPCLASSFACTORY IClassFactory_Constructor(REFCLSID rclsid)
     337{
     338        IClassFactoryImpl* lpclf;
     339
     340        lpclf= (IClassFactoryImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IClassFactoryImpl));
     341        lpclf->ref = 1;
     342        lpclf->lpvtbl = &clfvt;
     343        lpclf->rclsid = (CLSID*)rclsid;
     344
     345        TRACE("(%p)->()\n",lpclf);
     346        shell32_ObjCount++;
     347        return (LPCLASSFACTORY)lpclf;
     348}
     349
     350
     351/**************************************************************************
    350352 * Default ClassFactory Implementation
    351353 *
     
    369371} IDefClFImpl;
    370372
    371 static ICOM_VTABLE(IClassFactory) dclfvt;
    372 
    373 /**************************************************************************
    374  *  IDefClF_fnConstructor
    375  */
    376 
    377 IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, UINT * pcRefDll, REFIID riidInst)
    378 {
    379         IDefClFImpl* lpclf;
    380         char    xriidInst[50];
    381 
    382         WINE_StringFromCLSID((LPCLSID)riidInst,xriidInst);
    383 
    384         lpclf = (IDefClFImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IDefClFImpl));
    385         lpclf->ref = 1;
    386         lpclf->lpvtbl = &dclfvt;
    387         lpclf->lpfnCI = lpfnCI;
    388         lpclf->pcRefDll = pcRefDll;
    389 
    390         if (pcRefDll)
    391           (*pcRefDll)++;
    392 
    393         lpclf->riidInst = riidInst;
    394 
    395         TRACE("(%p)\n\tIID:\t%s\n",lpclf, xriidInst);
    396         shell32_ObjCount++;
    397         return (LPCLASSFACTORY)lpclf;
    398 }
     373//static ICOM_VTABLE(IClassFactory) dclfvt;
     374
    399375/**************************************************************************
    400376 *  IDefClF_fnQueryInterface
     
    505481};
    506482
     483/**************************************************************************
     484 *  IDefClF_fnConstructor
     485 */
     486
     487IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, UINT * pcRefDll, REFIID riidInst)
     488{
     489        IDefClFImpl* lpclf;
     490        char    xriidInst[50];
     491
     492        WINE_StringFromCLSID((LPCLSID)riidInst,xriidInst);
     493
     494        lpclf = (IDefClFImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IDefClFImpl));
     495        lpclf->ref = 1;
     496        lpclf->lpvtbl = &dclfvt;
     497        lpclf->lpfnCI = lpfnCI;
     498        lpclf->pcRefDll = pcRefDll;
     499
     500        if (pcRefDll)
     501          (*pcRefDll)++;
     502
     503        lpclf->riidInst = riidInst;
     504
     505        TRACE("(%p)\n\tIID:\t%s\n",lpclf, xriidInst);
     506        shell32_ObjCount++;
     507        return (LPCLASSFACTORY)lpclf;
     508}
     509
     510
    507511/******************************************************************************
    508512 * SHCreateDefClassObject                       [SHELL32.70]
Note: See TracChangeset for help on using the changeset viewer.