Changeset 1303 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Nov 30, 2008, 6:31:35 AM (17 years ago)
Author:
Gregg Young
Message:

Last part of remove or replace with a mutex semaphore DosEnterCriSec where appropriate. (Ticket 308) Note the partial commits for this ticket won't build without this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r1224 r1303  
    6969  29 Aug 08 JBS Ticket 259: Support saving/restoring target directories with states (except the shutdown state)
    7070  01 Sep 08 GKY Save toolbars immediately on change. Add bmps for default toolbars
     71  29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate.
    7172
    7273***********************************************************************/
     
    14011402
    14021403  case WM_CONTEXTMENU:
    1403     DosEnterCritSec();
     1404    //DosEnterCritSec(); //GKY 11-29-08
     1405    DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT);
    14041406    if (!hwndMenu)
    14051407      hwndMenu = WinLoadMenu(hwnd, FM3ModHandle, ID_BUTTONMENU);
    1406     DosExitCritSec();
     1408    DosReleaseMutexSem(hmtxFM2Globals);
     1409    //DosExitCritSec();
    14071410    SetPresParams(hwndMenu, NULL, NULL, NULL, GetPString(IDS_10SYSPROTEXT));
    14081411    if (PopupMenu(hwnd, hwnd, hwndMenu))
Note: See TracChangeset for help on using the changeset viewer.