From d575e828d70de86cb0adde9c59a40eef987f9c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 20 Nov 2021 01:48:09 +0100 Subject: [PATCH] [NTDLL_APITEST] Test that NtQueryInformationProcess(ProcessWx86Information) can work without a ReturnLength pointer. --- .../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,