Changeset 1402 for trunk/dll/update.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/update.c

    r1398 r1402  
    1919  02 Aug 07 SHL Sync with CNRITEM mods
    2020  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     21  14 Mar 09 GKY Prevent execution of UM_SHOWME while drive scan is occuring
    2122
    2223***********************************************************************/
     
    190191            PostMsg(hwndCnr, UM_RESCAN, MPVOID, MPVOID);
    191192            if (pci->attrFile & FILE_DIRECTORY) {
    192               if (fInitialDriveScan)
     193              /*if (fInitialDriveScan)
    193194                Stubby(hwndCnr, pci);
    194195              else {
    195196                while (StubbyScanCount != 0)
    196                   DosSleep(50);
    197                 Stubby(hwndCnr, pci);
    198               }
     197                  DosSleep(50);*/
     198              Stubby(hwndCnr, pci);
     199              //}
    199200            }
    200201          }
     
    290291              dcd->ullTotalBytes += ullTotalBytes;
    291292            }
    292             if (fInitialDriveScan)
     293            /*if (fInitialDriveScan)
    293294              Stubby(hwndCnr, pci);
    294295            else {
    295296              while (StubbyScanCount != 0)
    296                 DosSleep(50);
    297               Stubby(hwndCnr, pci);
    298             }
     297                DosSleep(50);*/
     298            Stubby(hwndCnr, pci);
     299            //}
    299300          }
    300301        }
     
    464465                repos = TRUE;
    465466                if (pci->attrFile & FILE_DIRECTORY) {
    466                   if (fInitialDriveScan)
     467                  /*if (fInitialDriveScan)
    467468                    Stubby(hwndCnr, pci);
    468469                  else {
    469470                    while (StubbyScanCount != 0)
    470                       DosSleep(50);
    471                     Stubby(hwndCnr, pci);
    472                   }
     471                      DosSleep(50);*/
     472                Stubby(hwndCnr, pci);
     473                 // }
    473474                }
    474475              }
     
    569570                  }
    570571                  repos = TRUE;
    571                   if (fInitialDriveScan)
     572                  /*if (fInitialDriveScan)
    572573                    Stubby(hwndCnr, pci);
    573574                  else {
    574575                    while (StubbyScanCount != 0)
    575                       DosSleep(50);
    576                     Stubby(hwndCnr, pci);
    577                   }
     576                      DosSleep(50);*/
     577                  Stubby(hwndCnr, pci);
     578                  //}
    578579                }
    579580                else
Note: See TracChangeset for help on using the changeset viewer.