From d4e292197b2fb3cc19aaf84781d74e32da7357fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 1 May 2011 08:01:05 +0000 Subject: [PATCH] [freeldr] ramdisk: allocate memory with right type This fixes NT boot type with a ramdisk, but ntoskrnl part is still broken svn path=/trunk/; revision=51516 --- reactos/boot/freeldr/freeldr/disk/ramdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/boot/freeldr/freeldr/disk/ramdisk.c b/reactos/boot/freeldr/freeldr/disk/ramdisk.c index b9123ddb38a..19eaa78aff8 100644 --- a/reactos/boot/freeldr/freeldr/disk/ramdisk.c +++ b/reactos/boot/freeldr/freeldr/disk/ramdisk.c @@ -168,7 +168,7 @@ RamDiskLoadVirtualFile(IN PCHAR FileName) Percent = PercentPerChunk = 0; else Percent = PercentPerChunk = 100 / (gRamDiskSize / ChunkSize); - gRamDiskBase = MmAllocateMemory(gRamDiskSize); + gRamDiskBase = MmAllocateMemoryWithType(gRamDiskSize, LoaderXIPRom); if (!gRamDiskBase) { UiMessageBox("Failed to allocate memory for RAM disk\n"); -- 2.17.1