mirror of
https://github.com/reactos/reactos.git
synced 2026-05-28 03:44:02 +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)
|
||||
{
|
||||
Status = RamDiskLoadVirtualFile(FileName, DefaultPath);
|
||||
if (Status != ESUCCESS)
|
||||
return Status;
|
||||
}
|
||||
else
|
||||
Status = RamDiskLoadVirtualFile(DefaultPath, NULL);
|
||||
if (Status != ESUCCESS)
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* Adjust the Ramdisk image length if needed */
|
||||
|
||||
@@ -1114,7 +1114,7 @@ LoadAndBootWindows(
|
||||
|
||||
/* Check if a RAM disk file was given */
|
||||
FileName = NtLdrGetOptionEx(BootOptions, "RDPATH=", &FileNameLength);
|
||||
if (FileName && (FileNameLength > 7))
|
||||
if (FileName && (FileNameLength >= 7))
|
||||
{
|
||||
/* Load the RAM disk */
|
||||
Status = RamDiskInitialize(FALSE, BootOptions, SystemPartition);
|
||||
|
||||
Reference in New Issue
Block a user