Index: /trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
===================================================================
--- /trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp	(revision 54167)
+++ /trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp	(revision 54168)
@@ -2627,5 +2627,5 @@
      *  whether the hint is valid. Therefore don't do any VRAM sanity checks
      *  here! */
-    if (iDisplay > RT_MIN(pThis->cMonitors, RT_ELEMENTS(pCtx->aModeHints)))
+    if (iDisplay >= RT_MIN(pThis->cMonitors, RT_ELEMENTS(pCtx->aModeHints)))
         return VERR_OUT_OF_RANGE;
     pCtx->aModeHints[iDisplay].magic    = VBVAMODEHINT_MAGIC;
