mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-20 18:34:58 +00:00
Clang
This commit is contained in:
parent
3eb01e042d
commit
161a92f146
1 changed files with 3 additions and 3 deletions
|
@ -588,12 +588,12 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
|
|||
std::scoped_lock lk{mutex};
|
||||
|
||||
// FindVMA on addresses before the vma_map return garbage data.
|
||||
auto query_addr = addr < impl.SystemManagedVirtualBase() ?
|
||||
impl.SystemManagedVirtualBase() : addr;
|
||||
auto query_addr =
|
||||
addr < impl.SystemManagedVirtualBase() ? impl.SystemManagedVirtualBase() : addr;
|
||||
if (addr < query_addr && flags == 0) {
|
||||
LOG_WARNING(Kernel_Vmm, "VirtualQuery on free memory region");
|
||||
return ORBIS_KERNEL_ERROR_EACCES;
|
||||
}
|
||||
}
|
||||
auto it = FindVMA(query_addr);
|
||||
|
||||
if (it->second.type == VMAType::Free && flags == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue