mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
- Fix ProcessPriorityClass case in NtQueryInformationProcess. Structure PROCESS_PRIORITY_CLASS should be returned. Tested in win vista
svn path=/trunk/; revision=41365
This commit is contained in:
parent
b9a6ee158d
commit
89c5e30fd7
1 changed files with 4 additions and 2 deletions
|
@ -68,6 +68,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
|||
PPROCESS_BASIC_INFORMATION ProcessBasicInfo =
|
||||
(PPROCESS_BASIC_INFORMATION)ProcessInformation;
|
||||
PKERNEL_USER_TIMES ProcessTime = (PKERNEL_USER_TIMES)ProcessInformation;
|
||||
PPROCESS_PRIORITY_CLASS PsPriorityClass = (PPROCESS_PRIORITY_CLASS)ProcessInformation;
|
||||
ULONG HandleCount;
|
||||
PPROCESS_SESSION_INFORMATION SessionInfo =
|
||||
(PPROCESS_SESSION_INFORMATION)ProcessInformation;
|
||||
|
@ -559,7 +560,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
|||
case ProcessPriorityClass:
|
||||
|
||||
/* Set the return length*/
|
||||
Length = sizeof(USHORT);
|
||||
Length = sizeof(PROCESS_PRIORITY_CLASS);
|
||||
|
||||
if (ProcessInformationLength != Length)
|
||||
{
|
||||
|
@ -580,7 +581,8 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
|||
_SEH2_TRY
|
||||
{
|
||||
/* Return current priority class */
|
||||
*(PUSHORT)ProcessInformation = Process->PriorityClass;
|
||||
PsPriorityClass->PriorityClass = Process->PriorityClass;
|
||||
PsPriorityClass->Foreground = FALSE;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue