mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Allow inter-thread timer setting but not inter-process
svn path=/trunk/; revision=13986
This commit is contained in:
parent
2a13486746
commit
108b495229
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue