Index: /trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR0/GMMR0.cpp	(revision 29413)
+++ /trunk/src/VBox/VMM/VMMR0/GMMR0.cpp	(revision 29414)
@@ -3764,4 +3764,5 @@
         {
             /* First time; create a page descriptor array. */
+            Log(("Allocate page descriptor array for %d pages\n", cPages));
             pGlobalRegion->paHCPhysPageID = (uint32_t *)RTMemAlloc(cPages * sizeof(*pGlobalRegion->paHCPhysPageID));
             if (!pGlobalRegion->paHCPhysPageID)
@@ -3783,5 +3784,5 @@
             {
                 /* We've seen this shared page for the first time? */
-                if (pGlobalRegion->paHCPhysPageID == NIL_GMM_PAGEID)
+                if (pGlobalRegion->paHCPhysPageID[i] == NIL_GMM_PAGEID)
                 {
                     /* Easy case: just change the internal page type. */
