Skip to content

Commit d575e82

Browse files
committed
[NTDLL_APITEST] Test that NtQueryInformationProcess(ProcessWx86Information) can work without a ReturnLength pointer.
1 parent 88e3ef5 commit d575e82

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/rostests/apitests/ntdll/NtQueryInformationProcess.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,15 @@ Test_ProcessWx86Information(void)
310310
ok_hex(Status, STATUS_DATATYPE_MISALIGNMENT);
311311

312312
/* Query the VDM power */
313+
Status = NtQueryInformationProcess(NtCurrentProcess(),
314+
ProcessWx86Information,
315+
&VdmPower,
316+
sizeof(VdmPower),
317+
NULL);
318+
ok_hex(Status, STATUS_SUCCESS);
319+
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);
320+
321+
/* Same but with ReturnLength */
313322
Status = NtQueryInformationProcess(NtCurrentProcess(),
314323
ProcessWx86Information,
315324
&VdmPower,

0 commit comments

Comments
 (0)