mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 07:28:19 +00:00
[NTOS]: Support getting the protection mask for other kinds of VADs in NtQueryVirtualMemory, instead of an ASSERT.
svn path=/trunk/; revision=56290
This commit is contained in:
parent
211b7c77d4
commit
696287a5ed
1 changed files with 14 additions and 2 deletions
|
@ -1430,8 +1430,20 @@ MiQueryMemoryBasicInformation(IN HANDLE ProcessHandle,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* This must be a VM VAD */
|
||||
ASSERT(Vad->u.VadFlags.PrivateMemory);
|
||||
/* Set the correct memory type based on what kind of VAD this is */
|
||||
if ((Vad->u.VadFlags.PrivateMemory) ||
|
||||
(Vad->u.VadFlags.VadType == VadRotatePhysical))
|
||||
{
|
||||
MemoryInfo.Type = MEM_PRIVATE;
|
||||
}
|
||||
else if (Vad->u.VadFlags.VadType == VadImageMap)
|
||||
{
|
||||
MemoryInfo.Type = MEM_IMAGE;
|
||||
}
|
||||
else
|
||||
{
|
||||
MemoryInfo.Type = MEM_MAPPED;
|
||||
}
|
||||
|
||||
/* Lock the address space of the process */
|
||||
MmLockAddressSpace(&TargetProcess->Vm);
|
||||
|
|
Loading…
Reference in a new issue