mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-24 19:14:40 +00:00
Clang
This commit is contained in:
parent
3eb01e042d
commit
161a92f146
@ -588,12 +588,12 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
|
|||||||
std::scoped_lock lk{mutex};
|
std::scoped_lock lk{mutex};
|
||||||
|
|
||||||
// FindVMA on addresses before the vma_map return garbage data.
|
// FindVMA on addresses before the vma_map return garbage data.
|
||||||
auto query_addr = addr < impl.SystemManagedVirtualBase() ?
|
auto query_addr =
|
||||||
impl.SystemManagedVirtualBase() : addr;
|
addr < impl.SystemManagedVirtualBase() ? impl.SystemManagedVirtualBase() : addr;
|
||||||
if (addr < query_addr && flags == 0) {
|
if (addr < query_addr && flags == 0) {
|
||||||
LOG_WARNING(Kernel_Vmm, "VirtualQuery on free memory region");
|
LOG_WARNING(Kernel_Vmm, "VirtualQuery on free memory region");
|
||||||
return ORBIS_KERNEL_ERROR_EACCES;
|
return ORBIS_KERNEL_ERROR_EACCES;
|
||||||
}
|
}
|
||||||
auto it = FindVMA(query_addr);
|
auto it = FindVMA(query_addr);
|
||||||
|
|
||||||
if (it->second.type == VMAType::Free && flags == 1) {
|
if (it->second.type == VMAType::Free && flags == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user