mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
the ProcessPriorityBoost class expects ULONG, not BOOL
svn path=/trunk/; revision=13195
This commit is contained in:
parent
ec6ea0795a
commit
52fadec1ee
1 changed files with 4 additions and 4 deletions
|
@ -881,12 +881,12 @@ GetProcessPriorityBoost(HANDLE hProcess,
|
|||
PBOOL pDisablePriorityBoost)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
BOOL PriorityBoost;
|
||||
ULONG PriorityBoost;
|
||||
|
||||
Status = NtQueryInformationProcess(hProcess,
|
||||
ProcessPriorityBoost,
|
||||
&PriorityBoost,
|
||||
sizeof(BOOL),
|
||||
sizeof(ULONG),
|
||||
NULL);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -908,12 +908,12 @@ SetProcessPriorityBoost(HANDLE hProcess,
|
|||
BOOL bDisablePriorityBoost)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
BOOL PriorityBoost = (bDisablePriorityBoost ? TRUE : FALSE); /* prevent setting values other than 1 and 0 */
|
||||
ULONG PriorityBoost = (bDisablePriorityBoost ? TRUE : FALSE); /* prevent setting values other than 1 and 0 */
|
||||
|
||||
Status = NtSetInformationProcess(hProcess,
|
||||
ProcessPriorityBoost,
|
||||
&PriorityBoost,
|
||||
sizeof(BOOL));
|
||||
sizeof(ULONG));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
|
|
Loading…
Reference in a new issue