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:
parent
e0138c4a6a
commit
8c3e6c378d
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue