Index: /trunk/src/VBox/Runtime/r3/memsafer-r3.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/memsafer-r3.cpp	(revision 52962)
+++ /trunk/src/VBox/Runtime/r3/memsafer-r3.cpp	(revision 52963)
@@ -286,9 +286,15 @@
 
         /*
+         * On darwin we cannot allocate pages without an R0 mapping and
+         * SUPR3PageAllocEx falls back to another method which is incompatible with
+         * the way SUPR3PageProtect works. Ignore changing the protection of the guard
+         * pages.
+         */
+#ifdef RT_OS_DARWIN
+        return VINF_SUCCESS;
+#else
+        /*
          * Configure the guard pages.
          * SUPR3PageProtect isn't supported on all hosts, we ignore that.
-         * Additionally on darwin we cannot allocate pages without a R0 mapping and
-         * SUPR3PageAllocEx falls back to another method which is incompatible with
-         * the way SUPR3PageProtect works, it returns VERR_INVALID_PARAMETER. Ignore that case too.
          */
         rc = SUPR3PageProtect(pvPages, NIL_RTR0PTR, 0, PAGE_SIZE, RTMEM_PROT_NONE);
@@ -305,4 +311,5 @@
         /* failed. */
         int rc2 = SUPR3PageFreeEx(pvPages, pThis->cPages); AssertRC(rc2);
+#endif
     }
     return rc;
