Changeset 6012 for trunk/src/user32/HOOK.CPP
- Timestamp:
- Jun 14, 2001, 4:49:19 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/HOOK.CPP
r5973 r6012 1 /* $Id: HOOK.CPP,v 1.2 1 2001-06-12 17:02:33sandervl Exp $ */1 /* $Id: HOOK.CPP,v 1.22 2001-06-14 14:49:16 sandervl Exp $ */ 2 2 3 3 /* … … 99 99 static HANDLE HOOK_threadHooks[WH_NB_HOOKS] = { 0 }; 100 100 static CRITICAL_SECTION threadCritSect = {0}; 101 static BOOL fInitHook = FALSE; 101 102 102 103 #ifdef GLOBAL_HOOKS 103 104 #define SYSTEMHOOK_LOCK() systemHookMutex.enter(VMUTEX_WAIT_FOREVER, &hGlobalHookMutex); 104 105 #define SYSTEMHOOK_UNLOCK() systemHookMutex.leave(&hGlobalHookMutex); 106 #define INIT_SYSTEMHOOK() aldkjfslfjsdlkfj 105 107 #else 106 108 #define SYSTEMHOOK_LOCK() EnterCriticalSection(&systemCritSect); 107 109 #define SYSTEMHOOK_UNLOCK() LeaveCriticalSection(&systemCritSect); 110 #define INIT_SYSTEMHOOK() InitializeCriticalSection(&systemCritSect); 108 111 #endif 109 112 … … 300 303 SetLastError(ERROR_INVALID_PARAMETER); 301 304 return 0; 305 } 306 307 if(!fInitHook) { 308 InitializeCriticalSection(&threadCritSect); 309 INIT_SYSTEMHOOK(); 310 fInitHook = TRUE; 302 311 } 303 312 … … 367 376 368 377 dprintf(("Removing hook %08x\n", data)); 378 379 if(!fInitHook) { 380 InitializeCriticalSection(&threadCritSect); 381 INIT_SYSTEMHOOK(); 382 fInitHook = TRUE; 383 } 369 384 370 385 if (data->flags & HOOK_INUSE)
Note:
See TracChangeset
for help on using the changeset viewer.