mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[NTOS:MM]
- Output debug information before ASSERTing. CORE-7671 - FORCEINLINE belongs before the return type (-Wold-style-declaration) svn path=/trunk/; revision=61646
This commit is contained in:
parent
d75ff2425e
commit
b1d778dfbb
2 changed files with 9 additions and 4 deletions
|
@ -1006,8 +1006,8 @@ MI_WRITE_VALID_PTE(IN PMMPTE PointerPte,
|
|||
//
|
||||
// Updates a valid PTE
|
||||
//
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
MI_UPDATE_VALID_PTE(IN PMMPTE PointerPte,
|
||||
IN MMPTE TempPte)
|
||||
{
|
||||
|
@ -1035,8 +1035,8 @@ MI_WRITE_INVALID_PTE(IN PMMPTE PointerPte,
|
|||
//
|
||||
// Erase the PTE completely
|
||||
//
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
MI_ERASE_PTE(IN PMMPTE PointerPte)
|
||||
{
|
||||
/* Zero out the PTE */
|
||||
|
|
|
@ -1692,7 +1692,12 @@ MiQueryMemoryBasicInformation(IN HANDLE ProcessHandle,
|
|||
if (MemoryArea->Type == MEMORY_AREA_SECTION_VIEW)
|
||||
{
|
||||
Status = MmQuerySectionView(MemoryArea, BaseAddress, &MemoryInfo, &ResultLength);
|
||||
ASSERT(NT_SUCCESS(Status));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("MmQuerySectionView failed. MemoryArea=%p (%p-%p), BaseAddress=%p",
|
||||
MemoryArea, MemoryArea->StartingAddress, MemoryArea->EndingAddress, BaseAddress);
|
||||
NT_ASSERT(NT_SUCCESS(Status));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1733,7 +1738,7 @@ MiQueryMemoryBasicInformation(IN HANDLE ProcessHandle,
|
|||
ObDereferenceObject(TargetProcess);
|
||||
}
|
||||
|
||||
/* Return the data, NtQueryInformation already probed it*/
|
||||
/* Return the data, NtQueryInformation already probed it */
|
||||
if (PreviousMode != KernelMode)
|
||||
{
|
||||
_SEH2_TRY
|
||||
|
|
Loading…
Reference in a new issue