* mmap.cc (MapView): Add NT status to debug output.

This commit is contained in:
Corinna Vinschen 2008-11-21 10:52:10 +00:00
parent d5567b8d75
commit b007725e34
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-11-21 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (MapView): Add NT status to debug output.
2008-11-11 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (GetSystemDEPPolicy): Define.

View File

@ -221,8 +221,9 @@ MapView (HANDLE h, void *addr, size_t len, DWORD openflags,
base = NULL;
SetLastError (RtlNtStatusToDosError (ret));
}
debug_printf ("%x = NtMapViewOfSection (h:%x, addr:%x, len:%u, off:%D, "
"protect:%x, type:%x)", base, h, addr, len, off, protect, 0);
debug_printf ("%p (status %p) = NtMapViewOfSection (h:%x, addr:%x, len:%u,"
" off:%X, protect:%x, type:%x)",
base, ret, h, addr, len, off, protect, 0);
return base;
}