Changeset 3257 for trunk/src/shell32/shlfolder.cpp
- Timestamp:
- Mar 28, 2000, 5:28:54 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shlfolder.cpp
r3250 r3257 1 /* $Id: shlfolder.cpp,v 1.1 0 2000-03-27 15:09:21cbratschi Exp $ */1 /* $Id: shlfolder.cpp,v 1.11 2000-03-28 15:28:53 cbratschi Exp $ */ 2 2 /* 3 3 * Shell Folder stuff … … 114 114 /* get the shellfolder for the child pidl and let it analyse further */ 115 115 hr = IShellFolder_BindToObject(psf, *pidlInOut, NULL, &IID_IShellFolder, (LPVOID*)&psfChild); 116 dprintf(("C 1")); 116 117 117 if (psfChild) 118 118 { dprintf(("C 1a %d",psfChild/*,(psfChild)->fnParseDisplayName()*/)); 119 119 hr = IShellFolder_ParseDisplayName(psfChild, hwndOwner, NULL, szNext, pEaten, &pidlOut, pdwAttributes); 120 dprintf(("C 1b")); 120 121 121 IShellFolder_Release(psfChild); 122 dprintf(("C 2"));123 122 pidlTemp = ILCombine(*pidlInOut, pidlOut); 124 dprintf(("C 3"));125 123 if (pidlOut) 126 124 ILFree(pidlOut); 127 125 } 128 dprintf(("C 4")); 126 129 127 ILFree(*pidlInOut); 130 128 *pidlInOut = pidlTemp; … … 798 796 { 799 797 LPPIDLDATA pd1, pd2; 798 800 799 pd1 = _ILGetDataPointer(pidl1); 801 800 pd2 = _ILGetDataPointer(pidl2); … … 2099 2098 if ((szPath[0] == 'A') || (szPath[0] == 'a') || (szPath[0] == 'B') || (szPath[0] == 'b')) 2100 2099 { 2101 //CB: todo: move to resource, German name is "3,5-Diskette" -> English "3.5-Disk"? 2102 strcpy(szDrive,"Floppy drive"); 2100 //floppy 2101 strncpy(szDrive,szPath,2); 2102 //3.5 floppy 2103 LoadStringA(shell32_hInstance,IDS_35FLOPPY,szPath,sizeof(szPath)-10); 2104 //CB: todo: 5.25 floppy check 2105 strcat(szPath," ("); 2106 strncat(szPath,szDrive,2); 2107 strcat(szPath,")"); 2103 2108 } else 2104 2109 { 2105 2110 GetVolumeInformationA(szPath,szDrive,12,&dwVolumeSerialNumber,&dwMaximumComponetLength,&dwFileSystemFlags,NULL,0); 2111 strcat (szDrive," ("); 2112 strncat (szDrive, szPath, 2); 2113 strcat (szDrive,")"); 2114 strcpy (szPath, szDrive); 2106 2115 } 2107 strcat (szDrive," (");2108 strncat (szDrive, szPath, 2);2109 strcat (szDrive,")");2110 strcpy (szPath, szDrive);2111 2116 } 2112 2117 }
Note:
See TracChangeset
for help on using the changeset viewer.