Revert VirtualQuery while loop

Windows wasn't happy with this, again.
Will try to debug and properly fix this when I have a good chance.
This commit is contained in:
Stephen Miller 2025-05-05 09:47:24 -05:00 committed by GitHub
parent b38867d085
commit 3525109e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -607,7 +607,7 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
}
auto it = FindVMA(query_addr);
while (it->second.type == VMAType::Free && flags == 1 && it != vma_map.end()) {
if (it->second.type == VMAType::Free && flags == 1) {
++it;
}
if (it->second.type == VMAType::Free) {