- Timestamp:
- Jun 14, 2001, 4:49:19 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 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) -
trunk/src/user32/win32wbase.cpp
r6008 r6012 1 /* $Id: win32wbase.cpp,v 1.2 69 2001-06-14 11:30:56sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.270 2001-06-14 14:49:17 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2994 2994 HWND Win32BaseWindow::FindWindowById(int id) 2995 2995 { 2996 HWND hwnd; 2997 2996 2998 lock(); 2997 2999 for (Win32BaseWindow *child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild()) … … 2999 3001 if (child->getWindowId() == id) 3000 3002 { 3003 hwnd = child->getWindowHandle(); 3001 3004 unlock(); 3002 return child->getWindowHandle();3005 return hwnd; 3003 3006 } 3004 3007 } … … 3702 3705 Win32BaseWindow *window; 3703 3706 3704 lock(&critsect);3707 //// lock(&critsect); 3705 3708 if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) { 3706 3709 if(window) { … … 3708 3711 window->addRef(); 3709 3712 } 3710 unlock(&critsect);3713 //// unlock(&critsect); 3711 3714 return window; 3712 3715 } 3713 unlock(&critsect);3716 //// unlock(&critsect); 3714 3717 // dprintf2(("Win32BaseWindow::GetWindowFromHandle: not a win32 window %x", hwnd)); 3715 3718 return NULL; -
trunk/src/user32/windowmsg.cpp
r5935 r6012 1 /* $Id: windowmsg.cpp,v 1.2 6 2001-06-09 14:50:26sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.27 2001-06-14 14:49:19 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 204 204 if(!window) { 205 205 dprintf(("PostMessageA, window %x not found", hwnd)); 206 return 0;206 return FALSE; 207 207 } 208 208 hwndOS2 = window->getOS2WindowHandle(); … … 230 230 if(!window) { 231 231 dprintf(("PostMessageW, window %x not found", hwnd)); 232 return 0;232 return FALSE; 233 233 } 234 234 hwndOS2 = window->getOS2WindowHandle();
Note:
See TracChangeset
for help on using the changeset viewer.