From 108b495229d6241d6edd2d2d139e0d8a574df81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 12 Mar 2005 22:42:38 +0000 Subject: [PATCH] Allow inter-thread timer setting but not inter-process svn path=/trunk/; revision=13986 --- reactos/subsys/win32k/ntuser/timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/timer.c b/reactos/subsys/win32k/ntuser/timer.c index 75e9f844b1d..e79a3cc5cd1 100644 --- a/reactos/subsys/win32k/ntuser/timer.c +++ b/reactos/subsys/win32k/ntuser/timer.c @@ -92,11 +92,11 @@ IntSetTimer(HWND Wnd, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, BOOL S 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; }