mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 16:41:51 +01:00
Fix improper VMM error check in unmap
This commit is contained in:
parent
4eff515c55
commit
7a5ca19c0b
@ -140,7 +140,7 @@ namespace skyline {
|
|||||||
}()};
|
}()};
|
||||||
|
|
||||||
// We can't have two unmapped regions after each other
|
// We can't have two unmapped regions after each other
|
||||||
if (eraseEnd == blockStartSuccessor || (blockStartPredecessor->Unmapped() && eraseEnd->Unmapped()))
|
if (eraseEnd != blocks.end() && (eraseEnd == blockStartSuccessor || (blockStartPredecessor->Unmapped() && eraseEnd->Unmapped())))
|
||||||
throw exception("Multiple contiguous unmapped regions are unsupported!");
|
throw exception("Multiple contiguous unmapped regions are unsupported!");
|
||||||
|
|
||||||
blocks.erase(blockStartSuccessor, eraseEnd);
|
blocks.erase(blockStartSuccessor, eraseEnd);
|
||||||
|
Loading…
Reference in New Issue
Block a user