mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
[NTOSKRNL]
"while (TRUE);" is probably the worst way of handling critical errors / unhandled failure pathes! Replace that with ASSERT(FALSE); svn path=/trunk/; revision=56272
This commit is contained in:
parent
af3c87e298
commit
4d61c55638
1 changed files with 3 additions and 6 deletions
|
@ -391,8 +391,7 @@ MiAddMappedPtes(IN PMMPTE FirstPte,
|
||||||
if (ProtoPte >= LastProtoPte)
|
if (ProtoPte >= LastProtoPte)
|
||||||
{
|
{
|
||||||
/* But we don't handle this yet */
|
/* But we don't handle this yet */
|
||||||
UNIMPLEMENTED;
|
ASSERT(FALSE);
|
||||||
while (TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The PTE should be completely clear */
|
/* The PTE should be completely clear */
|
||||||
|
@ -717,8 +716,7 @@ MiMapViewInSystemSpace(IN PVOID Section,
|
||||||
if (*ViewSize > SectionSize)
|
if (*ViewSize > SectionSize)
|
||||||
{
|
{
|
||||||
/* We should probably fail. FIXME TODO */
|
/* We should probably fail. FIXME TODO */
|
||||||
UNIMPLEMENTED;
|
ASSERT(FALSE);
|
||||||
while (TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the number of 64K buckets required for this mapping */
|
/* Get the number of 64K buckets required for this mapping */
|
||||||
|
@ -729,8 +727,7 @@ MiMapViewInSystemSpace(IN PVOID Section,
|
||||||
if (Buckets >= MI_SYSTEM_VIEW_BUCKET_SIZE)
|
if (Buckets >= MI_SYSTEM_VIEW_BUCKET_SIZE)
|
||||||
{
|
{
|
||||||
/* We should probably fail */
|
/* We should probably fail */
|
||||||
UNIMPLEMENTED;
|
ASSERT(FALSE);
|
||||||
while (TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Insert this view into system space and get a base address for it */
|
/* Insert this view into system space and get a base address for it */
|
||||||
|
|
Loading…
Reference in a new issue