mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
[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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user