[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:
Colin Finck 2021-02-20 17:13:38 +01:00
parent ea26bef01d
commit fd8080b094
No known key found for this signature in database
GPG key ID: 1BA74E70456BA1A9

View file

@ -1658,7 +1658,7 @@ WINAPI
GetPriorityClass(IN HANDLE hProcess) GetPriorityClass(IN HANDLE hProcess)
{ {
NTSTATUS Status; NTSTATUS Status;
PROCESS_PRIORITY_CLASS PriorityClass; PROCESS_PRIORITY_CLASS DECLSPEC_ALIGN(4) PriorityClass;
/* Query the kernel */ /* Query the kernel */
Status = NtQueryInformationProcess(hProcess, Status = NtQueryInformationProcess(hProcess,