ntdll: Don't pretend that the whole address space is reserved on non-i386.
This is analogous to61dcca5dbf
. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50735 Signed-off-by: Roman Pišl <rpisl@seznam.cz> Signed-off-by: Alexandre Julliard <julliard@winehq.org> (cherry picked from commit0ec555e58e
) Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
66fe6841b8
commit
3ba8d6ea05
|
@ -3663,10 +3663,18 @@ static int CDECL get_free_mem_state_callback( void *start, SIZE_T size, void *ar
|
|||
else /* outside of the reserved area, pretend it's allocated */
|
||||
{
|
||||
info->RegionSize = (char *)start - (char *)info->BaseAddress;
|
||||
#ifdef __i386__
|
||||
info->State = MEM_RESERVE;
|
||||
info->Protect = PAGE_NOACCESS;
|
||||
info->AllocationProtect = PAGE_NOACCESS;
|
||||
info->Type = MEM_PRIVATE;
|
||||
#else
|
||||
info->State = MEM_FREE;
|
||||
info->Protect = PAGE_NOACCESS;
|
||||
info->AllocationBase = 0;
|
||||
info->AllocationProtect = 0;
|
||||
info->Type = 0;
|
||||
#endif
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue