Changeset 1402 for trunk/dll/filldir.c


Ignore:
Timestamp:
Mar 14, 2009, 6:17:59 PM (16 years ago)
Author:
Gregg Young
Message:

Remove variable aurgs from docopy & unlinkf (not used); Move more strings to PCSZs and string table; Move PCSZs to compile time initialization; Fix hang on startup caused by a drive scan and a dircnr scan trying to update a drive in the tree at the same time (related to the "treeswitch options); Code cleanup mainly removal of old printfs, SayMsgs, DbgMsg and unneeded %s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1400 r1402  
    6666  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
    6767  08 Mar 09 GKY Renamed commafmt.h i18nutil.h
    68   08 Mar 09 GKY Additional strings move to PCSZs in init.c
     68  08 Mar 09 GKY Additional strings move to PCSZs
     69  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
     70  14 Mar 09 GKY Prevent execution of UM_SHOWME while drive scan is occuring
    6971
    7072***********************************************************************/
     
    120122
    121123#pragma data_seg(GLOBAL2)
    122 CHAR *FM3Tools;
    123 CHAR *WPProgram;
     124PCSZ FM3Tools   = "<FM3_Tools>";
     125PCSZ WPProgram  = "WPProgram";
    124126volatile INT StubbyScanCount;
    125127volatile INT ProcessDirCount;
     
    252254                     MPFROM2SHORT(LIT_SORTASCENDING, 0),
    253255                     MPFROMP(StubbyScan->pci->pszFileName));
    254         }
    255         StubbyScanCount--;
     256        }
     257        StubbyScanCount--;
    256258       /* if (StubbyScanCount == 0) {
    257259          if (fInitialDriveScan) {
     
    416418        fclose(fp);
    417419        hptr3 = WinLoadFileIcon(szFileName, FALSE);
    418         unlinkf("%s", szFileName);
     420        unlinkf(szFileName);
    419421        if (!hptr2)
    420422          hptr2 = hptr3;
     
    12421244    while (pci && (INT)pci != -1) {
    12431245      if ((pci->attrFile & FILE_DIRECTORY))
    1244         if (fInitialDriveScan)
     1246        //if (fInitialDriveScan)
    12451247          Stubby(hwndCnr, pci);
    1246         else {
     1248        /*else {
    12471249          while (StubbyScanCount != 0)
    12481250            DosSleep(50);
    12491251          Stubby(hwndCnr, pci);
    1250         }
     1252        } */
    12511253        //Stubby(hwndCnr, pci);
    12521254      pci = WinSendMsg(hwndCnr, CM_QUERYRECORD, MPFROMP(pci),
     
    16591661                                CM_QUERYRECORD,
    16601662                                MPVOID,
    1661                                 MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER));
     1663                                MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER));
    16621664    StubbyScanCount ++;
    16631665    while (pci && (INT)pci != -1) {
     
    16791681          if (~flags & DRIVE_INVALID &&
    16801682              ~flags & DRIVE_NOPRESCAN &&
    1681               (!fNoRemovableScan || ~flags & DRIVE_REMOVABLE) && !fDrivetoSkip[drvNum])
     1683              (!fNoRemovableScan || ~flags & DRIVE_REMOVABLE)) //&& !fDrivetoSkip[drvNum])
    16821684          {
    16831685            if (DRIVE_RAMDISK)
     
    17081710                     MPFROMP(pci->pszFileName));
    17091711        }
    1710         fDrivetoSkip[drvNum] = FALSE;
     1712        //fDrivetoSkip[drvNum] = FALSE;
    17111713      }
    17121714      pci = pciNext;
Note: See TracChangeset for help on using the changeset viewer.