Index: /trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp
===================================================================
--- /trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp	(revision 55025)
+++ /trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp	(revision 55026)
@@ -1660,5 +1660,5 @@
          * Query the region again, redo the free operation if there's still memory there.
          */
-        if (!NT_SUCCESS(rcNt) || !(pThis->fFlags & SUPHARDNTVP_F_EXEC_ALLOC_REPLACE_WITH_RW))
+        if (!NT_SUCCESS(rcNt))
             break;
         SIZE_T                      cbActual = 0;
@@ -1672,5 +1672,5 @@
                      MemInfo3.AllocationProtect, MemInfo3.Protect));
         supR3HardenedLogFlush();
-        if (pMemInfo->State == MEM_FREE)
+        if (MemInfo3.State == MEM_FREE || !(pThis->fFlags & SUPHARDNTVP_F_EXEC_ALLOC_REPLACE_WITH_RW))
             break;
         NtYieldExecution();
