Sweden-Number/dlls/ntdll/tests
Rémi Bernon 8878492d3b ntdll/tests: Add NtAllocateVirtualMemory tests for zero_bits behavior.
The zero_bits parameter doesn't behave as expected, and some 64bit code
use it to allocate memory in the lower 32bit address space.

The expected full behaviour is:

* zero_bits == 0: no constraint on address range
* 0 < zero_bits <= 15: returned address should have as many upper bits
                       set to 0, starting at bit 31. In 64bit mode,
                       upper 32bits should all be 0 as well.
* 15 < zero_bits <= 31: unsure, but probably same as zero_bits == 15.
* zero_bits > 31: (64bit/WoW64 only) zero_bits behaves as a bitmask, as
                  if it was set to the number of leading 0 in the
                  bitmask, works in the whole 64bit range.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-11 18:18:49 +02:00
..
Makefile.in ntdll/tests: Move NtAllocateVirtualMemory tests that were in kernel32. 2019-06-11 18:18:39 +02:00
atom.c
change.c
directory.c
env.c
error.c
exception.c ntdll/tests: Avoid the comma operator. 2019-04-29 22:23:34 +02:00
file.c
generated.c
info.c ntoskrnl.exe/tests: Add more NtOpenThread tests. 2019-04-23 23:50:45 +02:00
large_int.c
ntdll_test.h
om.c ntdll/tests: Fix a string leak (Valgrind). 2019-05-31 21:32:26 +02:00
path.c
pipe.c
port.c
reg.c
rtl.c ntdll: Initialize critical section debug info with correct pointer value. 2019-04-30 20:08:04 +02:00
rtlbitmap.c
rtlstr.c
string.c
threadpool.c
time.c
virtual.c ntdll/tests: Add NtAllocateVirtualMemory tests for zero_bits behavior. 2019-06-11 18:18:49 +02:00