Ignore:
Timestamp:
Mar 28, 2000, 5:28:54 PM (25 years ago)
Author:
cbratschi
Message:

floppy name resource, release fix (don't use pdump)

File:
1 edited

Legend:

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

    r3250 r3257  
    1 /* $Id: shlfolder.cpp,v 1.10 2000-03-27 15:09:21 cbratschi Exp $ */
     1/* $Id: shlfolder.cpp,v 1.11 2000-03-28 15:28:53 cbratschi Exp $ */
    22/*
    33 * Shell Folder stuff
     
    114114   /* get the shellfolder for the child pidl and let it analyse further */
    115115   hr = IShellFolder_BindToObject(psf, *pidlInOut, NULL, &IID_IShellFolder, (LPVOID*)&psfChild);
    116 dprintf(("C 1"));
     116
    117117   if (psfChild)
    118118   {  dprintf(("C 1a %d",psfChild/*,(psfChild)->fnParseDisplayName()*/));
    119119     hr = IShellFolder_ParseDisplayName(psfChild, hwndOwner, NULL, szNext, pEaten, &pidlOut, pdwAttributes);
    120 dprintf(("C 1b"));
     120
    121121     IShellFolder_Release(psfChild);
    122 dprintf(("C 2"));
    123122     pidlTemp = ILCombine(*pidlInOut, pidlOut);
    124 dprintf(("C 3"));
    125123     if (pidlOut)
    126124       ILFree(pidlOut);
    127125   }
    128 dprintf(("C 4"));
     126
    129127   ILFree(*pidlInOut);
    130128   *pidlInOut = pidlTemp;
     
    798796   {
    799797     LPPIDLDATA pd1, pd2;
     798
    800799     pd1 = _ILGetDataPointer(pidl1);
    801800     pd2 = _ILGetDataPointer(pidl2);
     
    20992098       if ((szPath[0] == 'A') || (szPath[0] == 'a') || (szPath[0] == 'B') || (szPath[0] == 'b'))
    21002099       {
    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,")");
    21032108       } else
    21042109       {
    21052110         GetVolumeInformationA(szPath,szDrive,12,&dwVolumeSerialNumber,&dwMaximumComponetLength,&dwFileSystemFlags,NULL,0);
     2111         strcat (szDrive," (");
     2112         strncat (szDrive, szPath, 2);
     2113         strcat (szDrive,")");
     2114         strcpy (szPath, szDrive);
    21062115       }
    2107        strcat (szDrive," (");
    2108        strncat (szDrive, szPath, 2);
    2109        strcat (szDrive,")");
    2110        strcpy (szPath, szDrive);
    21112116     }
    21122117   }
Note: See TracChangeset for help on using the changeset viewer.