Sync with trunk head
[reactos.git] / boot / freeldr / freeldr / fs / fs.c
index a2c5c49..eb23215 100644 (file)
@@ -319,6 +319,13 @@ LONG ArcOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId)
                     FileData[DeviceId].FuncTable = NULL;
                     return ret;
                 }
+                else if (!*FileName)
+                {
+                    /* Done, caller wanted to open the raw device */
+                    *FileId = DeviceId;
+                    pDevice->ReferenceCount++;
+                    return ESUCCESS;
+                }
 
                 /* Try to detect the file system */
 #ifndef _M_ARM