- Timestamp:
- Mar 18, 2004, 2:18:33 PM (21 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/timer.cpp
r10104 r10544 1 /* $Id: timer.cpp,v 1.1 6 2003-05-16 10:59:27sandervl Exp $ */1 /* $Id: timer.cpp,v 1.17 2004-03-18 13:18:33 sandervl Exp $ */ 2 2 3 3 /* … … 53 53 inline void EnterCriticalSection (void) 54 54 { 55 if ( timercritsect.hmtxLock == 0)55 if (DosValidateCriticalSection (&timercritsect) != 0) 56 56 DosInitializeCriticalSection(&timercritsect, NULL); 57 57 -
trunk/src/user32/win32wndhandle.cpp
r10379 r10544 1 /* $Id: win32wndhandle.cpp,v 1. 19 2004-01-11 12:03:21sandervl Exp $ */1 /* $Id: win32wndhandle.cpp,v 1.20 2004-03-18 13:18:33 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Handle Management Code for OS/2 … … 47 47 void InitializeWindowHandles() 48 48 { 49 if(globalwhandlecritsect.h mtxLock == 0) {49 if(globalwhandlecritsect.hevLock == 0) { 50 50 dprintf(("InitializeWindowHandles %x -> create shared critical section", &globalwhandlecritsect)); 51 DosInitializeCriticalSection(&globalwhandlecritsect, pszWndHandleSemName);52 51 } 53 52 else { 54 53 dprintf(("InitializeWindowHandles %x -> access shared critical section", &globalwhandlecritsect)); 55 DosAccessCriticalSection(&globalwhandlecritsect, pszWndHandleSemName);56 54 } 55 DosAccessCriticalSection(&globalwhandlecritsect, pszWndHandleSemName); 57 56 } 58 57 //****************************************************************************** … … 60 59 void FinalizeWindowHandles() 61 60 { 62 dprintf(("FinalizeWindowHandles %x", &globalwhandlecritsect));63 61 DosDeleteCriticalSection(&globalwhandlecritsect); 64 62 }
Note:
See TracChangeset
for help on using the changeset viewer.