[FREELDR] Add some missing UiDrawBackdrop() calls.
[reactos.git] / boot / freeldr / freeldr / disk / ramdisk.c
index 0afc702..4b2677a 100644 (file)
@@ -10,7 +10,7 @@
 /* INCLUDES *******************************************************************/
 
 #include <freeldr.h>
-#define NDEBUG
+
 #include <debug.h>
 
 /* GLOBALS ********************************************************************/
@@ -112,7 +112,7 @@ VOID
 NTAPI
 RamDiskInitialize(VOID)
 {
-    /* Setup the RAMDISK device */
+    /* Register the RAMDISK device */
     FsRegisterDevice("ramdisk(0)", &RamDiskVtbl);
 }
 
@@ -131,6 +131,7 @@ RamDiskLoadVirtualFile(IN PCHAR FileName)
     //
     // Display progress
     //
+    UiDrawBackdrop();
     UiDrawProgressBarCenter(1, 100, MsgBuffer);
 
     //
@@ -229,8 +230,8 @@ RamDiskLoadVirtualFile(IN PCHAR FileName)
 
     FsCloseFile(RamFile);
 
-    // Register a new device for the ramdisk
-    FsRegisterDevice("ramdisk(0)", &RamDiskVtbl);
+    /* Setup the RAMDISK device */
+    RamDiskInitialize();
 
     return TRUE;
 }