the ProcessPriorityBoost class expects ULONG, not BOOL
Modified: trunk/reactos/lib/kernel32/process/proc.c
_____
Modified: trunk/reactos/lib/kernel32/process/proc.c
--- trunk/reactos/lib/kernel32/process/proc.c 2005-01-21 21:29:29 UTC
(rev 13194)
+++ trunk/reactos/lib/kernel32/process/proc.c 2005-01-21 21:34:49 UTC
(rev 13195)
@@ -881,12 +881,12 @@
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 @@
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);
Show replies by date