ntdll: Don't pretend that the whole address space is reserved on non-i386.

This commit is contained in:
Alexandre Julliard 2009-04-06 12:07:33 +02:00
parent a558365ac3
commit 61dcca5dbf
1 changed files with 8 additions and 0 deletions

View File

@ -2089,10 +2089,18 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
if (!wine_mmap_enum_reserved_areas( get_free_mem_state_callback, info, 0 ))
{
/* not in a reserved area at all, pretend it's allocated */
#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
}
}
else