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/itemmoniker.c

    r8441 r8620  
    3939    ICOM_VTABLE(IMoniker)*  lpvtbl1;  /* VTable relative to the IMoniker interface.*/
    4040
    41     /* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether 
     41    /* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether
    4242     * two monikers are equal. That's whay IROTData interface is implemented by monikers.
    4343     */
     
    4949
    5050    LPOLESTR itemDelimiter; /* Delimiter string */
    51    
     51
    5252} ItemMonikerImpl;
    5353
     
    155155    if ( (This==0) || (ppvObject==0) )
    156156        return E_INVALIDARG;
    157  
     157
    158158  /* Initialize the return parameter */
    159159  *ppvObject = 0;
     
    166166     )
    167167      *ppvObject = iface;
    168  
     168
    169169    else if (IsEqualIID(&IID_IROTData, riid))
    170170        *ppvObject = (IROTData*)&(This->lpvtbl2);
     
    173173    if ((*ppvObject)==0)
    174174        return E_NOINTERFACE;
    175  
     175
    176176   /* Query Interface always increases the reference count by one when it is successful */
    177177  ItemMonikerImpl_AddRef(iface);
     
    210210        return 0;
    211211    }
    212     return This->ref;;
     212    return This->ref;
    213213}
    214214
     
    222222    if (pClassID==NULL)
    223223        return E_POINTER;
    224            
     224
    225225    *pClassID = CLSID_ItemMoniker;
    226        
     226
    227227    return S_OK;
    228228}
     
    356356
    357357    /* for more details see ItemMonikerImpl_Save coments */
    358    
     358
    359359    pcbSize->s.LowPart =  sizeof(DWORD) + /* DWORD which contains delimiter length */
    360360                        delimiterLength + /* item delimiter string */
     
    433433{
    434434    ICOM_THIS(ItemMonikerImpl,iface);
    435    
     435
    436436    HRESULT   res;
    437437    IID    refid=IID_IOleItemContainer;
     
    480480    if(pmkToLeft==NULL)
    481481        return E_INVALIDARG;
    482        
     482
    483483    res=IMoniker_BindToObject(pmkToLeft,pbc,NULL,&IID_IOleItemContainer,(void**)&poic);
    484484
     
    510510
    511511    *ppmkReduced=iface;
    512    
     512
    513513    return MK_S_REDUCED_TO_SELF;
    514514}
     
    533533
    534534    *ppmkComposite=0;
    535    
     535
    536536    IMoniker_IsSystemMoniker(pmkRight,&mkSys);
    537537
     
    543543        /* if pmkRight is a composite whose leftmost component is an anti-moniker,           */
    544544        /* the returned moniker is the composite after the leftmost anti-moniker is removed. */
    545        
     545
    546546         if(mkSys==MKSYS_GENERICCOMPOSITE){
    547547
     
    561561                tempMkComposite=iface;
    562562                IMoniker_AddRef(iface);
    563                
     563
    564564                while(IEnumMoniker_Next(penumMk,1,&pmostLeftMk,NULL)==S_OK){
    565565
     
    618618    if (pmkOtherMoniker==NULL)
    619619        return S_FALSE;
    620    
     620
    621621    /* This method returns S_OK if both monikers are item monikers and their display names are */
    622622    /* identical (using a case-insensitive comparison); otherwise, the method returns S_FALSE. */
     
    633633    IMoniker_GetDisplayName(iface,bind,NULL,&dispName1);
    634634    IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&dispName2);
    635    
     635
    636636    if (lstrcmpW(dispName1,dispName2)!=0)
    637637        return S_FALSE;
    638    
     638
    639639    return S_OK;
    640640}
     
    653653    if (pdwHash==NULL)
    654654        return E_POINTER;
    655    
     655
    656656    val =  This->itemName;
    657657    len = lstrlenW(val);
     
    712712        /* requesting an IOleItemContainer interface pointer. The method then calls IOleItemContainer::IsRunning,*/
    713713        /* passing the string contained within this moniker. */
    714        
     714
    715715        res=IMoniker_BindToObject(pmkToLeft,pbc,NULL,&IID_IOleItemContainer,(void**)&poic);
    716716
     
    793793
    794794        *ppmkPrefix=iface;
    795        
     795
    796796        IMoniker_AddRef(iface);
    797        
     797
    798798        return MK_S_US;
    799799    }
     
    815815
    816816    *ppmkRelPath=0;
    817    
     817
    818818    return MK_E_NOTBINDABLE;
    819819}
     
    845845    strcpyW(*ppszDisplayName,This->itemDelimiter);
    846846    strcatW(*ppszDisplayName,This->itemName);
    847    
     847
    848848    return S_OK;
    849849}
     
    900900    if (!pwdMksys)
    901901        return E_POINTER;
    902    
     902
    903903    (*pwdMksys)=MKSYS_ITEMMONIKER;
    904904
     
    937937{
    938938    ICOM_THIS_From_IROTData(IMoniker, iface);
    939    
     939
    940940    TRACE("(%p)\n",iface);
    941941
Note: See TracChangeset for help on using the changeset viewer.