[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

View File

@@ -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,