[FREELDR] Explicitly call RamDiskInitialize() in RamDiskLoadVirtualFile().

This commit is contained in:
Hermès Bélusca-Maïto 2018-12-30 15:21:19 +01:00
parent 7d6cbea42d
commit 6d5a7b1ce3
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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;
}