Ignore:
Timestamp:
Nov 12, 2002, 6:07:48 PM (23 years ago)
Author:
sandervl
Message:

Wine resync

File:
1 edited

Legend:

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

    r8620 r9400  
    871871
    872872    if (!IsEqualCLSID(&clsid,&CLSID_FileMoniker))
    873 
    874873        return S_FALSE;
    875874
    876     res=CreateBindCtx(0,&bind);
    877     if (FAILED(res))
    878         return res;
    879 
    880     IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&filePath);
    881 
    882     if (lstrcmpiW(filePath,
    883                   This->filePathName)!=0)
    884 
    885         return S_FALSE;
    886 
    887     return S_OK;
     875    res = CreateBindCtx(0,&bind);
     876    if (FAILED(res)) return res;
     877
     878    if (SUCCEEDED(IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&filePath))) {
     879        int result = lstrcmpiW(filePath, This->filePathName);
     880        CoTaskMemFree(filePath);
     881        if ( result == 0 ) return S_OK;
     882    }
     883    return S_FALSE;
     884
    888885}
    889886
     
    11001097    int len=lstrlenW(str);
    11011098
     1099    TRACE("%s, %p\n", debugstr_w(str), *stringTable);
     1100
    11021101    strgtable =CoTaskMemAlloc(len*sizeof(LPOLESTR));
    11031102
Note: See TracChangeset for help on using the changeset viewer.