mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Return reasonably correct result querying a null memory area. Still a TODO left.
svn path=/trunk/; revision=9308
This commit is contained in:
parent
857e0edb82
commit
2ff07f4497
1 changed files with 10 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: virtual.c,v 1.72 2004/04/10 22:35:26 gdalsnes Exp $
|
||||
/* $Id: virtual.c,v 1.73 2004/05/05 02:00:01 tamlin Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/mm/virtual.c
|
||||
|
@ -157,6 +157,15 @@ NtQueryVirtualMemory (IN HANDLE ProcessHandle,
|
|||
{
|
||||
Info->State = MEM_FREE;
|
||||
Info->BaseAddress = (PVOID)PAGE_ROUND_DOWN(Address);
|
||||
Info->AllocationBase = 0;
|
||||
Info->AllocationProtect = 0;
|
||||
/* TODO: Find the next memory area and set RegionSize! */
|
||||
/* Since programs might depend on RegionSize for
|
||||
* iteration, we for now just make up a value.
|
||||
*/
|
||||
Info->RegionSize = (Address > (PVOID)0x70000000) ? 0 : 0x10000;
|
||||
Info->Protect = PAGE_NOACCESS;
|
||||
Info->Type = 0;
|
||||
Status = STATUS_SUCCESS;
|
||||
ResultLength = sizeof(MEMORY_BASIC_INFORMATION);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue