Alexandre Julliard : ntdll: Don' t pretend that the whole address space is reserved on non-i386.
Alexandre Julliard
julliard at winehq.org
Mon Apr 6 09:00:33 CDT 2009
Module: wine
Branch: master
Commit: 61dcca5dbf4d0021f420dc87248b39a1dc1542db
URL: http://source.winehq.org/git/wine.git/?a=commit;h=61dcca5dbf4d0021f420dc87248b39a1dc1542db
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 6 12:07:33 2009 +0200
ntdll: Don't pretend that the whole address space is reserved on non-i386.
---
dlls/ntdll/virtual.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 90eabc5..9d46764 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -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
More information about the wine-cvs
mailing list