mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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:
parent
8973f39c75
commit
d4e292197b
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue