Ignore:
Timestamp:
Jun 9, 2002, 6:37:22 PM (23 years ago)
Author:
sandervl
Message:

Resync with latest Wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/oleproxy.c

    r8441 r8620  
    250250}
    251251
    252 /* Since we create proxy buffers and classfactory in a pair, there is 
    253  * no need for 2 seperate structs. Just put them in one, but remember 
     252/* Since we create proxy buffers and classfactory in a pair, there is
     253 * no need for 2 seperate structs. Just put them in one, but remember
    254254 * the refcount.
    255255 */
     
    348348    TRACE("(%p,%s,%p)\n",pUnkOuter,debugstr_guid(riid),ppv);
    349349
    350     /* Send CreateInstance to the remote classfactory. 
     350    /* Send CreateInstance to the remote classfactory.
    351351     *
    352352     * Data: Only the 'IID'.
     
    437437PSFacBuf_QueryInterface(LPPSFACTORYBUFFER iface, REFIID iid, LPVOID *ppv) {
    438438    if (IsEqualIID(iid,&IID_IPSFactoryBuffer)||IsEqualIID(iid,&IID_IUnknown)) {
    439         *ppv = (LPVOID)iface; 
     439        *ppv = (LPVOID)iface;
    440440        /* No ref counting, static class */
    441441        return S_OK;
     
    453453    IRpcProxyBuffer **ppProxy, LPVOID *ppv
    454454) {
    455     if (IsEqualIID(&IID_IClassFactory,riid))
     455    if (IsEqualIID(&IID_IClassFactory,riid) ||
     456        IsEqualIID(&IID_IUnknown,riid)
     457    )
    456458        return CFProxy_Construct(ppv,(LPVOID*)ppProxy);
    457459    FIXME("proxying not implemented for (%s) yet!\n",debugstr_guid(riid));
     
    468470    TRACE("(%s,%p,%p)\n",debugstr_guid(riid),pUnkServer,ppStub);
    469471
    470     if (IsEqualIID(&IID_IClassFactory,riid)) {
     472    if (IsEqualIID(&IID_IClassFactory,riid) ||
     473        IsEqualIID(&IID_IUnknown,riid)
     474    ) {
    471475        hres = CFStub_Construct(ppStub);
    472476        if (!hres)
     
    498502    if (IsEqualIID(rclsid,&CLSID_PSFactoryBuffer)) {
    499503        *ppv = &lppsfac;
    500         /* If we create a ps factory, we might need a stub manager later 
     504        /* If we create a ps factory, we might need a stub manager later
    501505         * anyway
    502506         */
     
    504508        return S_OK;
    505509    }
    506     if (IsEqualIID(rclsid,&CLSID_DfMarshal)&&IsEqualIID(iid,&IID_IClassFactory))
     510    if (IsEqualIID(rclsid,&CLSID_DfMarshal)&&(
     511                IsEqualIID(iid,&IID_IClassFactory) ||
     512                IsEqualIID(iid,&IID_IUnknown)
     513        )
     514    )
    507515        return MARSHAL_GetStandardMarshalCF(ppv);
    508516    FIXME("\n\tCLSID:\t%s,\n\tIID:\t%s\n",debugstr_guid(rclsid),debugstr_guid(iid));
Note: See TracChangeset for help on using the changeset viewer.