ntdll: Reserve the area whenever possible in reserve_area() on FreeBSD.

Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Damjan Jovanovic 2020-05-23 12:07:28 +02:00 committed by Alexandre Julliard
parent e0138c4a6a
commit 8c3e6c378d
1 changed files with 4 additions and 0 deletions

View File

@ -135,7 +135,11 @@ static void reserve_area( void *addr, void *end )
if (!size) return;
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
ptr = mmap( addr, size, PROT_NONE, flags | MAP_FIXED | MAP_EXCL, -1, 0 );
#else
ptr = mmap( addr, size, PROT_NONE, flags, -1, 0 );
#endif
if (ptr == addr)
{
mmap_add_reserved_area( addr, size );