mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
[nx] Fix bug in MemoryMappingHandler
This commit is contained in:
parent
b7207e8429
commit
123f85c01f
1 changed files with 1 additions and 2 deletions
|
@ -33,7 +33,7 @@ void nx::MemoryMappingHandler::importKernelCapabilityList(const fnd::List<Kernel
|
||||||
fnd::List<MemoryPageEntry> entries;
|
fnd::List<MemoryPageEntry> entries;
|
||||||
for (size_t i = 0; i < caps.size(); i++)
|
for (size_t i = 0; i < caps.size(); i++)
|
||||||
{
|
{
|
||||||
entries[i].setKernelCapability(caps[i]);
|
entries.addElement(caps[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
mMemRange.clear();
|
mMemRange.clear();
|
||||||
|
@ -43,7 +43,6 @@ void nx::MemoryMappingHandler::importKernelCapabilityList(const fnd::List<Kernel
|
||||||
// has flag means "MemMap"
|
// has flag means "MemMap"
|
||||||
if (entries[i].isMultiplePages())
|
if (entries[i].isMultiplePages())
|
||||||
{
|
{
|
||||||
|
|
||||||
// this entry is the last one or the next one isn't a memory map
|
// this entry is the last one or the next one isn't a memory map
|
||||||
if ((i + 1) == entries.size() || entries[i+1].isMultiplePages() == false)
|
if ((i + 1) == entries.size() || entries[i+1].isMultiplePages() == false)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue