Index: /trunk/src/VBox/Main/MediumImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/MediumImpl.cpp	(revision 33756)
+++ /trunk/src/VBox/Main/MediumImpl.cpp	(revision 33757)
@@ -3693,5 +3693,6 @@
                 }
             }
-            else if (m->devType != convertToDeviceType(enmType))
+            else if (   enmType == VDTYPE_INVALID
+                     || m->devType != convertToDeviceType(enmType))
             {
                 /*
Index: /trunk/src/VBox/Storage/RAW.cpp
===================================================================
--- /trunk/src/VBox/Storage/RAW.cpp	(revision 33756)
+++ /trunk/src/VBox/Storage/RAW.cpp	(revision 33757)
@@ -548,5 +548,5 @@
         && pszExtension)
     {
-        if (!strcmp(pszExtension, ".iso")) /* DVD images. */
+        if (!RTStrICmp(pszExtension, ".iso")) /* DVD images. */
         {
             if (cbFile >= (32768 + sizeof(ISOVOLDESC)))
@@ -578,5 +578,5 @@
             }
         }
-        else if (!strcmp(pszExtension, ".img") || !strcmp(pszExtension, ".ima")) /* Floppy images */
+        else if (!RTStrICmp(pszExtension, ".img") || !RTStrICmp(pszExtension, ".ima")) /* Floppy images */
         {
             if (!(cbFile % 512))
