[Kernel] Fix DuplicateHandle, fix typo, panic on FS::OpenFileDirectly

This commit is contained in:
wheremyfoodat 2022-10-03 21:05:41 +03:00
parent fca54b99a7
commit 88c93645e3
4 changed files with 21 additions and 4 deletions

View file

@ -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