https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6d5a7b1ce3916acb5b61f…
commit 6d5a7b1ce3916acb5b61fe6bb6bf200fcfdde866
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Dec 30 15:21:19 2018 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Dec 30 15:26:44 2018 +0100
[FREELDR] Explicitly call RamDiskInitialize() in RamDiskLoadVirtualFile().
---
boot/freeldr/freeldr/disk/ramdisk.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/boot/freeldr/freeldr/disk/ramdisk.c b/boot/freeldr/freeldr/disk/ramdisk.c
index 8f2edc6a13..f922452d1b 100644
--- a/boot/freeldr/freeldr/disk/ramdisk.c
+++ b/boot/freeldr/freeldr/disk/ramdisk.c
@@ -112,7 +112,7 @@ VOID
NTAPI
RamDiskInitialize(VOID)
{
- /* Setup the RAMDISK device */
+ /* Register the RAMDISK device */
FsRegisterDevice("ramdisk(0)", &RamDiskVtbl);
}
@@ -229,8 +229,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;
}