mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[KERNEL32] Align the PROCESS_PRIORITY_CLASS variable in GetPriorityClass on a 4-byte boundary.
Fixes CORE-16757. This is required for NtQueryInformationProcess as proven by my test application in the bug report.
This commit is contained in:
@@ -1658,7 +1658,7 @@ WINAPI
|
||||
GetPriorityClass(IN HANDLE hProcess)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
PROCESS_PRIORITY_CLASS PriorityClass;
|
||||
PROCESS_PRIORITY_CLASS DECLSPEC_ALIGN(4) PriorityClass;
|
||||
|
||||
/* Query the kernel */
|
||||
Status = NtQueryInformationProcess(hProcess,
|
||||
|
||||
Reference in New Issue
Block a user