From: Brendan McGrath bmcgrath@codeweavers.com
ASLR is supported only on Windows Vista and later --- dlls/ntdll/unix/virtual.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c index 75e6319c007..83f90a50929 100644 --- a/dlls/ntdll/unix/virtual.c +++ b/dlls/ntdll/unix/virtual.c @@ -3039,7 +3039,8 @@ static NTSTATUS virtual_map_image( HANDLE mapping, void **addr_ptr, SIZE_T *size return status; }
- if (!image_info->map_addr && + if (peb->OSMajorVersion > 5 && /* ASLR is supported only on Windows Vista and later */ + !image_info->map_addr && (image_info->image_charact & IMAGE_FILE_DLL) && (image_info->image_flags & IMAGE_FLAGS_ImageDynamicallyRelocated)) {