Changeset 1347 for trunk/dll


Ignore:
Timestamp:
Dec 20, 2008, 5:22:16 AM (17 years ago)
Author:
Gregg Young
Message:

More code cleanup

Location:
trunk/dll
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirsize.c

    r1335 r1347  
    142142
    143143  CheckDrive(toupper(*pszFileName), FileSystem, NULL);
    144   /*if (!stricmp(FileSystem, NTFS)) {
    145     saymsg(MB_OK,
    146            HWND_DESKTOP,
    147            NullStr,
    148            GetPString(IDS_NTFSDRIVERFAILSTEXT));
    149     return FALSE;
    150   } */
    151144  ulBufBytes = sizeof(FILEFINDBUF4L) * FilesToGet;
    152145  pffbArray = xmalloc(ulBufBytes, pszSrcFile, __LINE__);
     
    162155  hdir = HDIR_CREATE;
    163156  ulFindCnt = 1;
    164   // memset(pffbArray, 0, sizeof(FILEFINDBUF4L));       // 11 Aug 07 SHL bypass memset
    165157  DosError(FERR_DISABLEHARDERR);
    166158  // Check directory exists
     
    717709              // Place text above graph box with a bit of whitespace between
    718710              ptl.x = oi->rclItem.xLeft;
    719               ptl.y = yBottom + boxHeight + 6;  // 03 Aug 07 SHL
    720               // GpiMove(oi->hps, &ptl);
     711              ptl.y = yBottom + boxHeight + 6;
    721712              GpiCharStringAt(oi->hps, &ptl, p - pci->pszDisplayName,
    722713                              pci->pszDisplayName);
     
    725716
    726717              // draw the graph box
    727               // GpiQueryTextBox(oi->hps, 1, "#", TXTBOX_COUNT, aptl);  // 03 Aug 07 SHL
    728718              // draw black outline
    729719              GpiSetColor(oi->hps, CLR_BLACK);
  • trunk/dll/draglist.c

    r1207 r1347  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2007 Steven H.Levine
     9  Copyright (c) 2001, 2008 Steven H.Levine
    1010
    1111  16 Oct 02 SHL DoFileDrag: don't free stack
  • trunk/dll/droplist.c

    r1207 r1347  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2003, 2007 Steven H.Levine
     9  Copyright (c) 2003, 2008 Steven H.Levine
    1010
    1111  22 Nov 02 SHL Baseline
     
    246246        ret = TRUE;
    247247
    248       // FreeDragInfoData(hwnd, pDInfo);        // 20 Apr 07 SHL
    249248      DrgFreeDraginfo(pDInfo);
    250249    }
  • trunk/dll/eas.c

    r1222 r1347  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004, 2006 Steven H. Levine
     9  Copyright (c) 2004, 2008 Steven H. Levine
    1010
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    13061306  }
    13071307  else {
    1308     //Runtime_Error(pszSrcFile, __LINE__, "why here", filename);
    1309     //03 AUG 07 GKY This isn't an error it is for processing Readonly files
    13101308    /* try it without opening it */
    13111309    if (!DosQueryPathInfo(filename, FIL_QUERYEASIZE, (PVOID) & fsa4,
     
    13471345                info = xmalloc(sizeof(HOLDFEA), pszSrcFile, __LINE__);
    13481346                if (info) {
    1349         // 29 Nov 07 GKY One short (EA search crash)
     1347               // 29 Nov 07 GKY One short (EA search crash)
    13501348                  info->pfea =
    13511349                    xmalloc(eaop.fpFEA2List->cbList - sizeof(ULONG) + 1,
  • trunk/dll/filldir.c

    r1335 r1347  
    213213                       CM_INVALIDATERECORD,
    214214                       MPFROMP(&StubbyScan->pci),
    215                        MPFROM2SHORT(1, CMA_ERASE | CMA_REPOSITION));
    216         }
     215                       MPFROM2SHORT(1, CMA_ERASE | CMA_REPOSITION));
     216          }
    217217        if (WinIsWindow((HAB)0, StubbyScan->hwndDrivesList)) {
    218218          WinSendMsg(StubbyScan->hwndDrivesList,
     
    992992                ullTotalBytes += ullBytes;
    993993              } // for
    994               // 13 Aug 07 SHL ulSelCnt checked already?
    995               // if (ulSelCnt) {
    996994              memset(&ri, 0, sizeof(RECORDINSERT));
    997995              ri.cb = sizeof(RECORDINSERT);
     
    13231321              strcmp(szFSType, NDFS32) &&
    13241322              strcmp(szFSType, RAMFS) &&
    1325               strcmp(szFSType, NTFS) &&
     1323              strcmp(szFSType, NTFS) &&
    13261324              strcmp(szFSType, HPFS386)) {
    13271325            driveflags[x] |= DRIVE_NOLONGNAMES;
     
    13301328          if (!strcmp(szFSType, CDFS) || !strcmp(szFSType,ISOFS)) {
    13311329            removable = 1;
    1332             driveflags[x] |= DRIVE_REMOVABLE | DRIVE_NOTWRITEABLE |
    1333                              DRIVE_CDROM;
     1330            driveflags[x] |= DRIVE_REMOVABLE | DRIVE_NOTWRITEABLE | DRIVE_CDROM;
    13341331          }
    1335           else if (!stricmp(szFSType, CBSIFS)) {
     1332          if (!stricmp(szFSType, CBSIFS)) {
    13361333            driveflags[x] |= DRIVE_ZIPSTREAM;
    13371334            driveflags[x] &= ~DRIVE_REMOTE;
     
    13401337            if (!(ulDriveType & DRIVE_NOLONGNAMES))
    13411338              driveflags[x] &= ~DRIVE_NOLONGNAMES;
    1342           }
     1339          }
    13431340
    13441341          pci->rc.flRecordAttr |= CRA_RECORDREADONLY;
    1345           // if ((ULONG) (toupper(*pci->pszFileName) - '@') == ulCurDriveNum)   // 23 Jul 07 SHL
    13461342          if ((ULONG)(toupper(*szDrive) - '@') == ulCurDriveNum)
    13471343            pci->rc.flRecordAttr |= (CRA_CURSORED | CRA_SELECTED);
     
    13701366              sprintf(suggest + strlen(suggest), "%c" , toupper(*szDrive));
    13711367              pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1372               //strcpy(pci->pszFileName, szDrive);
    13731368              pci->pszDisplayName = pci->pszFileName;
    13741369              pci->rc.pszIcon = pci->pszDisplayName;
     
    13831378            // Removable volume
    13841379            pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1385             //strcpy(pci->pszFileName, szDrive);
    13861380            pci->pszDisplayName = pci->pszFileName;
    13871381            pci->rc.pszIcon = pci->pszDisplayName;
     
    13981392          pci->rc.hptrIcon = hptrDunno;
    13991393          pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1400           // strcpy(pci->pszFileName, szDrive); // 22 Jul 08 SHL No need to do this twice
    14011394#         ifdef FORTIFY
    14021395          // Will be freed by TreeCnrWndProc WM_DESTROY
     
    14141407        pci->rc.hptrIcon = hptrFloppy;
    14151408        pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1416         //strcpy(pci->pszFileName, szDrive);
    14171409        pci->pszDisplayName = pci->pszFileName;
    14181410        pci->rc.pszIcon = pci->pszDisplayName;
     
    14861478      pciParent->flags |= RECFLAGS_ENV;
    14871479      pciParent->pszFileName = xstrdup(GetPString(IDS_ENVVARSTEXT), pszSrcFile, __LINE__);
    1488       //strcpy(pciParent->pszFileName, GetPString(IDS_ENVVARSTEXT));
    14891480      pciParent->pszDisplayName = pciParent->pszFileName;       // 03 Aug 07 SHL
    14901481      pciParent->rc.hptrIcon = hptrEnv;
  • trunk/dll/filter.c

    r1304 r1347  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004, 2007 Steven H.Levine
     9  Copyright (c) 2004, 2008 Steven H.Levine
    1010
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
  • trunk/dll/findrec.c

    r1160 r1347  
    55
    66  Copyright (c) 1993-98 M. Kimes
    7   Copyright (c) 2003, 2007 Steven H.Levine
     7  Copyright (c) 2003, 2008 Steven H.Levine
    88
    99  Find records
  • trunk/dll/fm2cmd.c

    r1229 r1347  
    55
    66  Copyright (c) 1993-98 M. Kimes
    7   Copyright (c) 2003, 2007 Steven H.Levine
     7  Copyright (c) 2003, 2008 Steven H.Levine
    88
    99  Command processing
  • trunk/dll/fsopen.c

    r1178 r1347  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2007 Steven H. Levine
     9  Copyright (c) 2007 2008 Steven H. Levine
    1010
    1111  15 Oct 02 SHL Baseline
  • trunk/dll/getnames.c

    r1223 r1347  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2006 Steven H. Levine
     9  Copyright (c) 2006, 2008 Steven H. Levine
    1010
    1111  23 Aug 06 SHL Comments
  • trunk/dll/info.c

    r1223 r1347  
    825825          fp = _fsopen(pfs->szFileName, "rb", SH_DENYNO);
    826826          if (fp) {
    827             // char buff[512];
    828827            char buff[4096];            // 06 Oct 07 SHL protect against NTFS defect
    829828            ULONG len;
Note: See TracChangeset for help on using the changeset viewer.