[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
This commit is contained in:
Hervé Poussineau 2011-05-01 08:01:05 +00:00
parent 8973f39c75
commit d4e292197b

View 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");