mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 05:01:03 +00:00
Patch by Mike Nordell: Change UserMode to KeGetCurrentProcess()->PreviousMode in calls to ObReferenceObjectByHandle() in file ps/kill.c
svn path=/trunk/; revision=6093
This commit is contained in:
parent
4374bab13d
commit
e125705217
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: kill.c,v 1.64 2003/09/14 10:50:29 hbirr Exp $
|
||||
/* $Id: kill.c,v 1.65 2003/09/18 17:55:21 fireball Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -299,7 +299,7 @@ NtTerminateProcess(IN HANDLE ProcessHandle,
|
|||
Status = ObReferenceObjectByHandle(ProcessHandle,
|
||||
PROCESS_TERMINATE,
|
||||
PsProcessType,
|
||||
UserMode,
|
||||
KeGetCurrentThread()->PreviousMode,
|
||||
(PVOID*)&Process,
|
||||
NULL);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
@ -328,7 +328,7 @@ NtTerminateThread(IN HANDLE ThreadHandle,
|
|||
Status = ObReferenceObjectByHandle(ThreadHandle,
|
||||
THREAD_TERMINATE,
|
||||
PsThreadType,
|
||||
UserMode,
|
||||
KeGetCurrentThread()->PreviousMode,
|
||||
(PVOID*)&Thread,
|
||||
NULL);
|
||||
if (Status != STATUS_SUCCESS)
|
||||
|
@ -401,7 +401,7 @@ NtRegisterThreadTerminatePort(HANDLE TerminationPortHandle)
|
|||
Status = ObReferenceObjectByHandle(TerminationPortHandle,
|
||||
PORT_ALL_ACCESS,
|
||||
ExPortType,
|
||||
UserMode,
|
||||
KeGetCurrentThread()->PreviousMode,
|
||||
(PVOID*)&TerminationPort,
|
||||
NULL);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
|
Loading…
Reference in a new issue