mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 17:33:50 +08:00
[FREELDR] Allow empty RDPATH parameter
In that case, read the whole partition/disk, instead of the selected file. CORE-14603
This commit is contained in:
@@ -272,11 +272,11 @@ RamDiskInitialize(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (*FileName)
|
if (*FileName)
|
||||||
{
|
|
||||||
Status = RamDiskLoadVirtualFile(FileName, DefaultPath);
|
Status = RamDiskLoadVirtualFile(FileName, DefaultPath);
|
||||||
if (Status != ESUCCESS)
|
else
|
||||||
return Status;
|
Status = RamDiskLoadVirtualFile(DefaultPath, NULL);
|
||||||
}
|
if (Status != ESUCCESS)
|
||||||
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust the Ramdisk image length if needed */
|
/* Adjust the Ramdisk image length if needed */
|
||||||
|
|||||||
@@ -1114,7 +1114,7 @@ LoadAndBootWindows(
|
|||||||
|
|
||||||
/* Check if a RAM disk file was given */
|
/* Check if a RAM disk file was given */
|
||||||
FileName = NtLdrGetOptionEx(BootOptions, "RDPATH=", &FileNameLength);
|
FileName = NtLdrGetOptionEx(BootOptions, "RDPATH=", &FileNameLength);
|
||||||
if (FileName && (FileNameLength > 7))
|
if (FileName && (FileNameLength >= 7))
|
||||||
{
|
{
|
||||||
/* Load the RAM disk */
|
/* Load the RAM disk */
|
||||||
Status = RamDiskInitialize(FALSE, BootOptions, SystemPartition);
|
Status = RamDiskInitialize(FALSE, BootOptions, SystemPartition);
|
||||||
|
|||||||
Reference in New Issue
Block a user