Ignore:
Timestamp:
Oct 11, 2001, 4:33:03 AM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shlfolder.c

    r7012 r7014  
    4444LPITEMIDLIST _Optlink ODIN_ILClone      (LPCITEMIDLIST pidl);
    4545LPITEMIDLIST _Optlink ODIN_ILCloneFirst (LPCITEMIDLIST pidl);
     46LPITEMIDLIST _Optlink ODIN_ILGetNext    (LPITEMIDLIST pidl);
     47
     48void         _Optlink ODIN_SHFree   (LPVOID x);
     49LPVOID       _Optlink ODIN_SHAlloc  (DWORD len);
    4650
    4751
     
    173177            hr = IPersistFolder_Initialize(pPersistFolder, absPidl);
    174178            IPersistFolder_Release(pPersistFolder);
    175             SHFree(absPidl);
     179            ODIN_SHFree(absPidl);
    176180            *ppvOut = pShellFolder;
    177181          }
     
    202206          if (SUCCEEDED(hr))
    203207          {
    204             pidlNext = ILGetNext(pidl);
     208            pidlNext = ODIN_ILGetNext(pidl);
    205209
    206210            hr = IShellFolder_GetDisplayNameOf(psfChild, pidlNext, dwFlags | SHGDN_INFOLDER, &strTemp);
     
    418422            TRACE("-- destroyed IShellFolder(%p) was Desktopfolder\n",This);
    419423          }
    420           if(This->absPidl) SHFree(This->absPidl);
    421           if(This->sMyPath) SHFree(This->sMyPath);
     424          if(This->absPidl) ODIN_SHFree(This->absPidl);
     425          if(This->sMyPath) ODIN_SHFree(This->sMyPath);
    422426          HeapFree(GetProcessHeap(),0,This);
    423427          return 0;
     
    539543
    540544            dwSize += _ILSimpleGetText(pidl,NULL,0);            /* add the size of our name*/
    541             sf->sMyPath = SHAlloc(dwSize + 2);                  /* '\0' and backslash */
     545            sf->sMyPath = ODIN_SHAlloc(dwSize + 2);                     /* '\0' and backslash */
    542546
    543547            if(!sf->sMyPath) return NULL;
     
    765769              IPersistFolder_Initialize(pPersistFolder, absPidl);
    766770              IPersistFolder_Release(pPersistFolder);
    767               SHFree(absPidl);
     771              ODIN_SHFree(absPidl);
    768772            }
    769773            else
     
    10661070            pidl = ODIN_ILCombine(This->absPidl,apidl[0]);
    10671071            pObj = (LPUNKNOWN)IExtractIconA_Constructor( pidl );
    1068             SHFree(pidl);
     1072            ODIN_SHFree(pidl);
    10691073            hr = S_OK;
    10701074          }
     
    14761480          pidl = ODIN_ILCombine(This->absPidl, pidlitem);
    14771481          SHChangeNotifyA(SHCNE_MKDIR, SHCNF_IDLIST, pidl, NULL);
    1478           SHFree(pidl);
     1482          ODIN_SHFree(pidl);
    14791483
    14801484          if (ppidlOut) *ppidlOut = pidlitem;
     
    15411545            pidl = ODIN_ILCombine(This->absPidl, apidl[i]);
    15421546            SHChangeNotifyA(SHCNE_RMDIR, SHCNF_IDLIST, pidl, NULL);
    1543             SHFree(pidl);
     1547            ODIN_SHFree(pidl);
    15441548          }
    15451549          else if (_ILIsValue(apidl[i]))
     
    15551559            pidl = ODIN_ILCombine(This->absPidl, apidl[i]);
    15561560            SHChangeNotifyA(SHCNE_DELETE, SHCNF_IDLIST, pidl, NULL);
    1557             SHFree(pidl);
     1561            ODIN_SHFree(pidl);
    15581562          }
    15591563
     
    15971601              MESSAGE("would copy %s to %s\n", szSrcPath, szDstPath);
    15981602            }
    1599             SHFree(pidl);
     1603            ODIN_SHFree(pidl);
    16001604          }
    16011605          IPersistFolder2_Release(ppf2);
     
    26622666        if(This->absPidl)
    26632667        {
    2664           SHFree(This->absPidl);
     2668          ODIN_SHFree(This->absPidl);
    26652669          This->absPidl = NULL;
    26662670        }
    26672671        if(This->sMyPath)
    26682672        {
    2669           SHFree(This->sMyPath);
     2673          ODIN_SHFree(This->sMyPath);
    26702674          This->sMyPath = NULL;
    26712675        }
     
    26772681        if (SHGetPathFromIDListA(pidl, sTemp))
    26782682        {
    2679           This->sMyPath = SHAlloc(strlen(sTemp)+1);
     2683          This->sMyPath = ODIN_SHAlloc(strlen(sTemp)+1);
    26802684          strcpy(This->sMyPath, sTemp);
    26812685        }
Note: See TracChangeset for help on using the changeset viewer.