mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 20:44:28 +00:00
VirtualQuery fix
Due to limitations of certain platforms, we initialize our vma_map with 3 separate free mappings. As such, we need to use a while loop here to accurately query mappings with high addresses
This commit is contained in:
parent
3d50eeeebb
commit
31ae988abe
@ -596,7 +596,7 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
|
|||||||
}
|
}
|
||||||
auto it = FindVMA(query_addr);
|
auto it = FindVMA(query_addr);
|
||||||
|
|
||||||
if (it->second.type == VMAType::Free && flags == 1) {
|
while (it->second.type == VMAType::Free && flags == 1 && it != vma_map.end()) {
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
if (it->second.type == VMAType::Free) {
|
if (it->second.type == VMAType::Free) {
|
||||||
|
Loading…
Reference in New Issue
Block a user