mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 06:18:29 +00:00
[FREELDR] In LoadReactOSSetup(), verify that our BootType is really ReactOSSetup.
This commit is contained in:
parent
3033580c1a
commit
d8547a8f20
1 changed files with 13 additions and 0 deletions
|
@ -212,6 +212,19 @@ LoadReactOSSetup(
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Retrieve the (mandatory) boot type */
|
||||||
|
ArgValue = GetArgumentValue(Argc, Argv, "BootType");
|
||||||
|
if (!ArgValue || !*ArgValue)
|
||||||
|
{
|
||||||
|
ERR("No 'BootType' value, aborting!\n");
|
||||||
|
return EINVAL;
|
||||||
|
}
|
||||||
|
if (_stricmp(ArgValue, "ReactOSSetup") != 0)
|
||||||
|
{
|
||||||
|
ERR("Unknown 'BootType' value '%s', aborting!\n", ArgValue);
|
||||||
|
return EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Retrieve the (mandatory) system partition */
|
/* Retrieve the (mandatory) system partition */
|
||||||
SystemPartition = GetArgumentValue(Argc, Argv, "SystemPartition");
|
SystemPartition = GetArgumentValue(Argc, Argv, "SystemPartition");
|
||||||
if (!SystemPartition || !*SystemPartition)
|
if (!SystemPartition || !*SystemPartition)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue