Index: /trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
===================================================================
--- /trunk/src/VBox/Devices/Storage/DrvHostBase.cpp	(revision 23738)
+++ /trunk/src/VBox/Devices/Storage/DrvHostBase.cpp	(revision 23739)
@@ -1084,10 +1084,10 @@
     {
         RTFileClose(pThis->FileRawDevice);
+        pThis->FileRawDevice = NIL_RTFILE;
+    }
+    if (pThis->FileDevice != NIL_RTFILE)
+    {
+        RTFileClose(pThis->FileDevice);
         pThis->FileDevice = NIL_RTFILE;
-    }
-    if (pThis->FileDevice != NIL_RTFILE)
-    {
-        RTFileClose(pThis->FileDevice);
-        pThis->FileRawDevice = NIL_RTFILE;
     }
     RTFILE FileRawDevice;
@@ -1433,5 +1433,5 @@
 
     /*
-     * Determin the size.
+     * Determine the size.
      */
     uint64_t cb;
Index: /trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
===================================================================
--- /trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp	(revision 23738)
+++ /trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp	(revision 23739)
@@ -342,5 +342,5 @@
         fMediaPresent = false;
         fMediaChanged = true;
-        /** @todo check this media chance stuff on Darwin. */
+        /** @todo check this media change stuff on Darwin. */
     }
 
