From 3525109e038646abbc9c0b24c7ddf7aad324214a Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Mon, 5 May 2025 09:47:24 -0500 Subject: [PATCH] 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. --- src/core/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index d76cbb67e..afafb14b5 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -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) {