mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[NTDLL_APITEST] Test that NtQueryInformationProcess(ProcessWx86Information) can work without a ReturnLength pointer.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user