Allow inter-thread timer setting but not inter-process Modified: trunk/reactos/subsys/win32k/ntuser/timer.c _____
Modified: trunk/reactos/subsys/win32k/ntuser/timer.c --- trunk/reactos/subsys/win32k/ntuser/timer.c 2005-03-12 22:31:22 UTC (rev 13985) +++ trunk/reactos/subsys/win32k/ntuser/timer.c 2005-03-12 22:42:38 UTC (rev 13986) @@ -92,11 +92,11 @@
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE); return 0; } - - if (WindowObject->OwnerThread != PsGetCurrentThread()) + + if (WindowObject->OwnerThread->ThreadsProcess != PsGetCurrentProcess()) { IntReleaseWindowObject(WindowObject); - DPRINT1("Trying to set timer for window in another thread (shatter attack?)\n"); + DPRINT1("Trying to set timer for window in another process (shatter attack?)\n"); SetLastWin32Error(ERROR_ACCESS_DENIED); return 0; }