mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-05 23:02:58 +12:00
[Kernel] Fix DuplicateHandle, fix typo, panic on FS::OpenFileDirectly
This commit is contained in:
parent
fca54b99a7
commit
88c93645e3
4 changed files with 21 additions and 4 deletions
|
@ -281,7 +281,7 @@ std::optional<u32> Memory::findPaddr(u32 size) {
|
|||
candidatePage = i + 1;
|
||||
counter = 0;
|
||||
}
|
||||
else { // Our candidate page has 1 mor
|
||||
else { // The paddr we're testing has 1 more free page
|
||||
counter++;
|
||||
// Check if there's enough free memory to use this page
|
||||
// We use == instead of >= because some software does 0-byte allocations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue