[freeldr] ramdisk: allocate memory with right type
authorHervé Poussineau <hpoussin@reactos.org>
Sun, 1 May 2011 08:01:05 +0000 (08:01 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sun, 1 May 2011 08:01:05 +0000 (08:01 +0000)
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

index b9123dd..19eaa78 100644 (file)
@@ -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");