[NTDLL_APITEST] Test that NtQueryInformationProcess(ProcessWx86Information) can work without a ReturnLength pointer.

This commit is contained in:
Hermès Bélusca-Maïto 2021-11-20 01:48:09 +01:00
parent 88e3ef5fa0
commit d575e828d7
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -310,6 +310,15 @@ Test_ProcessWx86Information(void)
ok_hex(Status, STATUS_DATATYPE_MISALIGNMENT);
/* Query the VDM power */
Status = NtQueryInformationProcess(NtCurrentProcess(),
ProcessWx86Information,
&VdmPower,
sizeof(VdmPower),
NULL);
ok_hex(Status, STATUS_SUCCESS);
ok(VdmPower == 0 || VdmPower == 1, "The VDM power value must be within the boundary between 0 and 1, not anything else! Got %lu\n", VdmPower);
/* Same but with ReturnLength */
Status = NtQueryInformationProcess(NtCurrentProcess(),
ProcessWx86Information,
&VdmPower,