[ros-diffs] [hpoussin] 45812: [freeldr] Allow opening of the raw device

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Wed Mar 3 23:39:33 CET 2010


Author: hpoussin
Date: Wed Mar  3 23:39:32 2010
New Revision: 45812

URL: http://svn.reactos.org/svn/reactos?rev=45812&view=rev
Log:
[freeldr] Allow opening of the raw device

Modified:
    trunk/reactos/boot/freeldr/freeldr/fs/fs.c

Modified: trunk/reactos/boot/freeldr/freeldr/fs/fs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/fs/fs.c?rev=45812&r1=45811&r2=45812&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/fs/fs.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fs.c [iso-8859-1] Wed Mar  3 23:39:32 2010
@@ -319,6 +319,13 @@
                     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




More information about the Ros-diffs mailing list