Changeset 1506 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Apr 12, 2010, 12:36:53 AM (15 years ago)
Author:
Gregg Young
Message:

Fixed hang and drive tree rescan failure resulting from event sem not being posted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1498 r1506  
    8080                before scan completes
    8181  22 Nov 09 GKY Add LVM.EXE to partition submenu
    82   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     82  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast
     83                CHAR CONSTANT * as CHAR *.
     84  11 Apr 10 GKY Fix drive tree rescan failure and program hang caused by event sem
     85                never being posted
    8386
    8487***********************************************************************/
     
    649652          temptop = fTopDir;
    650653          fTopDir = TRUE;
    651         }
    652     DosWaitEventSem(hevInitialCnrScanComplete, SEM_INDEFINITE_WAIT);
     654        }
     655        if (fInitialDriveScan)
     656          DosWaitEventSem(hevInitialCnrScanComplete, SEM_INDEFINITE_WAIT);
    653657        ShowTreeRec(dcd->hwndCnr, (CHAR *)mp1, fCollapseFirst, TRUE);
    654658        PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID);
     
    32723276          WinSetWindowText(WinWindowFromID(hwndFrame, FID_TITLEBAR), "VTree");
    32733277          FixSwitchList(hwndFrame, "VTree");
     3278          fInitialDriveScan = FALSE;
    32743279          DosPostEventSem(hevInitialCnrScanComplete);
    32753280          DosCloseEventSem(hevInitialCnrScanComplete);
    3276           fInitialDriveScan = FALSE;
    32773281        }
    32783282        else {
Note: See TracChangeset for help on using the changeset viewer.