https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d575e828d70de86cb0adde...
commit d575e828d70de86cb0adde9c59a40eef987f9c9f Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sat Nov 20 01:48:09 2021 +0100 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Mon Nov 22 00:13:33 2021 +0100
[NTDLL_APITEST] Test that NtQueryInformationProcess(ProcessWx86Information) can work without a ReturnLength pointer. --- modules/rostests/apitests/ntdll/NtQueryInformationProcess.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c b/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c index 1fd990a3ef6..9469d4d492c 100644 --- a/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c +++ b/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c @@ -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,