Index: /trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
===================================================================
--- /trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp	(revision 24149)
+++ /trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp	(revision 24150)
@@ -503,5 +503,4 @@
 {
     int rc;
-    RTFILE File;
     uint64_t cbTotal;
     uint64_t cbFill;
Index: /trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp
===================================================================
--- /trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp	(revision 24149)
+++ /trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp	(revision 24150)
@@ -686,5 +686,5 @@
     pImage->File = NIL_RTFILE;
 #else
-    pImage->pvStorage != NULL;
+    pImage->pvStorage = NULL;
 #endif
     pImage->pVDIfsDisk = pVDIfsDisk;
@@ -1791,5 +1791,4 @@
 {
     int rc;
-    RTFILE File;
     VHDFooter Footer;
     RTTIMESPEC now;
