Changeset 7014 for trunk/src/shell32/shlfolder.c
- Timestamp:
- Oct 11, 2001, 4:33:03 AM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/shell32/shlfolder.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shlfolder.c
r7012 r7014 44 44 LPITEMIDLIST _Optlink ODIN_ILClone (LPCITEMIDLIST pidl); 45 45 LPITEMIDLIST _Optlink ODIN_ILCloneFirst (LPCITEMIDLIST pidl); 46 LPITEMIDLIST _Optlink ODIN_ILGetNext (LPITEMIDLIST pidl); 47 48 void _Optlink ODIN_SHFree (LPVOID x); 49 LPVOID _Optlink ODIN_SHAlloc (DWORD len); 46 50 47 51 … … 173 177 hr = IPersistFolder_Initialize(pPersistFolder, absPidl); 174 178 IPersistFolder_Release(pPersistFolder); 175 SHFree(absPidl);179 ODIN_SHFree(absPidl); 176 180 *ppvOut = pShellFolder; 177 181 } … … 202 206 if (SUCCEEDED(hr)) 203 207 { 204 pidlNext = ILGetNext(pidl);208 pidlNext = ODIN_ILGetNext(pidl); 205 209 206 210 hr = IShellFolder_GetDisplayNameOf(psfChild, pidlNext, dwFlags | SHGDN_INFOLDER, &strTemp); … … 418 422 TRACE("-- destroyed IShellFolder(%p) was Desktopfolder\n",This); 419 423 } 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); 422 426 HeapFree(GetProcessHeap(),0,This); 423 427 return 0; … … 539 543 540 544 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 */ 542 546 543 547 if(!sf->sMyPath) return NULL; … … 765 769 IPersistFolder_Initialize(pPersistFolder, absPidl); 766 770 IPersistFolder_Release(pPersistFolder); 767 SHFree(absPidl);771 ODIN_SHFree(absPidl); 768 772 } 769 773 else … … 1066 1070 pidl = ODIN_ILCombine(This->absPidl,apidl[0]); 1067 1071 pObj = (LPUNKNOWN)IExtractIconA_Constructor( pidl ); 1068 SHFree(pidl);1072 ODIN_SHFree(pidl); 1069 1073 hr = S_OK; 1070 1074 } … … 1476 1480 pidl = ODIN_ILCombine(This->absPidl, pidlitem); 1477 1481 SHChangeNotifyA(SHCNE_MKDIR, SHCNF_IDLIST, pidl, NULL); 1478 SHFree(pidl);1482 ODIN_SHFree(pidl); 1479 1483 1480 1484 if (ppidlOut) *ppidlOut = pidlitem; … … 1541 1545 pidl = ODIN_ILCombine(This->absPidl, apidl[i]); 1542 1546 SHChangeNotifyA(SHCNE_RMDIR, SHCNF_IDLIST, pidl, NULL); 1543 SHFree(pidl);1547 ODIN_SHFree(pidl); 1544 1548 } 1545 1549 else if (_ILIsValue(apidl[i])) … … 1555 1559 pidl = ODIN_ILCombine(This->absPidl, apidl[i]); 1556 1560 SHChangeNotifyA(SHCNE_DELETE, SHCNF_IDLIST, pidl, NULL); 1557 SHFree(pidl);1561 ODIN_SHFree(pidl); 1558 1562 } 1559 1563 … … 1597 1601 MESSAGE("would copy %s to %s\n", szSrcPath, szDstPath); 1598 1602 } 1599 SHFree(pidl);1603 ODIN_SHFree(pidl); 1600 1604 } 1601 1605 IPersistFolder2_Release(ppf2); … … 2662 2666 if(This->absPidl) 2663 2667 { 2664 SHFree(This->absPidl);2668 ODIN_SHFree(This->absPidl); 2665 2669 This->absPidl = NULL; 2666 2670 } 2667 2671 if(This->sMyPath) 2668 2672 { 2669 SHFree(This->sMyPath);2673 ODIN_SHFree(This->sMyPath); 2670 2674 This->sMyPath = NULL; 2671 2675 } … … 2677 2681 if (SHGetPathFromIDListA(pidl, sTemp)) 2678 2682 { 2679 This->sMyPath = SHAlloc(strlen(sTemp)+1);2683 This->sMyPath = ODIN_SHAlloc(strlen(sTemp)+1); 2680 2684 strcpy(This->sMyPath, sTemp); 2681 2685 }
Note:
See TracChangeset
for help on using the changeset viewer.
