Legend:
- Unmodified
- Added
- Removed
- 
      trunk/dll/comp.cr1221 r1304 2753 2753 if (cmp) { 2754 2754 if (mp1) { 2755 DosEnterCritSec();2755 //DosEnterCritSec(); // GKY 11-30-08 moved to SetMask 2756 2756 SetMask((CHAR *)mp1, &cmp->dcd.mask); 2757 DosExitCritSec();2757 //DosExitCritSec(); 2758 2758 } 2759 2759 WinSetDlgItemText(hwnd, COMP_NOTE, 
- 
      trunk/dll/dircnrs.cr1303 r1304 1767 1767 1768 1768 if (mp1) { 1769 DosEnterCritSec();1769 //DosEnterCritSec(); // GKY 11-30-08 moved to SetMask 1770 1770 SetMask((CHAR *)mp1, &dcd->mask); 1771 DosExitCritSec();1771 //DosExitCritSec(); 1772 1772 } 1773 1773 dcd->suspendview = 1; 
- 
      trunk/dll/filter.cr1249 r1304 623 623 add_mask(test); 624 624 save_masks(); 625 DosEnterCritSec();625 //DosEnterCritSec(); // GKY 11-30-08 moved to SetMask 626 626 SetMask(mask->szMask, mask); 627 DosExitCritSec();627 //DosExitCritSec(); 628 628 WinDismissDlg(hwnd, 1); 629 629 } … … 647 647 if (SHORT1FROMMP(mp1) == DID_OK) { 648 648 *mask->szMask = 0; 649 DosEnterCritSec();649 //DosEnterCritSec(); // GKY 11-30-08 moved to SetMask 650 650 SetMask(mask->szMask, mask); 651 DosExitCritSec();651 //DosExitCritSec(); 652 652 WinDismissDlg(hwnd, 1); 653 653 } 
- 
      trunk/dll/fonts.cr1193 r1304 10 10 11 11 05 Jan 08 SHL Sync 12 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate. 12 13 13 14 ***********************************************************************/ … … 121 122 *szTitle = GetPString(IDS_SETFONTTITLETEXT), *szPreview; 122 123 123 DosEnterCritSec(); 124 //DosEnterCritSec(); //GKY 11-30-08 125 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 124 126 szPreview = GetPString(IDS_BLURB1TEXT + counter++); 125 127 if (strcmp(szPreview, "0")) { … … 127 129 szPreview = GetPString(IDS_BLURB1TEXT + counter++); 128 130 } 129 DosExitCritSec(); 131 DosReleaseMutexSem(hmtxFM2Globals); 132 //DosExitCritSec(); 130 133 memset(&fontdlg, 0, sizeof(fontdlg)); /* initialize all fields */ 131 134 hps = WinGetPS(hwnd); … … 182 185 if ((flags & 1) && !fattrs) 183 186 return fattrs; 184 DosEnterCritSec(); 187 //DosEnterCritSec(); //GKY 11-30-08 188 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 185 189 szPreview = GetPString(IDS_BLURB1TEXT + counter++); 186 190 if (strcmp(szPreview, "0")) { … … 188 192 szPreview = GetPString(IDS_BLURB1TEXT + counter++); 189 193 } 190 DosExitCritSec(); 194 DosReleaseMutexSem(hmtxFM2Globals); 195 //DosExitCritSec(); 191 196 memset(&fontDlg, 0, sizeof(fontDlg)); /* initialize all fields */ 192 197 /* 
- 
      trunk/dll/select.cr1226 r1304 529 529 PSZ p; 530 530 531 DosEnterCritSec(); 531 532 if (maskstr) 532 533 strcpy(mask->szMask, maskstr); // Got new mask string … … 545 546 } // for 546 547 mask->pszMasks[x] = NULL; // Mark end 548 DosExitCritSec(); 547 549 } 548 550 
- 
      trunk/dll/treecnr.cr1303 r1304 2286 2286 2287 2287 if (mp1) { 2288 DosEnterCritSec();2288 //DosEnterCritSec(); // GKY 11-30-08 moved to SetMask 2289 2289 SetMask((CHAR *)mp1, &dcd->mask); 2290 DosExitCritSec();2290 //DosExitCritSec(); 2291 2291 } 2292 2292 dcd->suspendview = TRUE; 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
