[ros-diffs] [gvg] 13986: Allow inter-thread timer setting but not
inter-process
gvg at svn.reactos.com
gvg at svn.reactos.com
Sat Mar 12 23:42:39 CET 2005
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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050312/dbd3111a/attachment.html
More information about the Ros-diffs
mailing list