Index: /trunk/src/VBox/Storage/QCOW.cpp
===================================================================
--- /trunk/src/VBox/Storage/QCOW.cpp	(revision 51625)
+++ /trunk/src/VBox/Storage/QCOW.cpp	(revision 51626)
@@ -1034,4 +1034,7 @@
     AssertPtrReturn(pImage->pIfIo, VERR_INVALID_PARAMETER);
 
+    rc = qcowL2TblCacheCreate(pImage);
+    AssertRC(rc);
+
     /*
      * Open the image.
@@ -1061,7 +1064,4 @@
             pImage->offNextCluster = RT_ALIGN_64(cbFile, 512); /* Align image to sector boundary. */
             Assert(pImage->offNextCluster >= cbFile);
-
-            rc = qcowL2TblCacheCreate(pImage);
-            AssertRC(rc);
 
             if (Header.u32Version == 1)
