mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[NTOSKRNL]
- Fix another case where we fail to detach from a process before failing svn path=/trunk/; revision=54394
This commit is contained in:
@@ -158,7 +158,12 @@ MiLoadImageSection(IN OUT PVOID *SectionPtr,
|
||||
/* Reserve system PTEs needed */
|
||||
PteCount = ROUND_TO_PAGES(Section->ImageSection->ImageSize) >> PAGE_SHIFT;
|
||||
PointerPte = MiReserveSystemPtes(PteCount, SystemPteSpace);
|
||||
if (!PointerPte) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
if (!PointerPte)
|
||||
{
|
||||
DPRINT1("MiReserveSystemPtes failed\n");
|
||||
KeUnstackDetachProcess(&ApcState);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
/* New driver base */
|
||||
LastPte = PointerPte + PteCount;
|
||||
|
||||
Reference in New Issue
Block a user