mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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
|
||||
};
|
||||
|
||||
/* 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 */
|
||||
SystemPartition = GetArgumentValue(Argc, Argv, "SystemPartition");
|
||||
if (!SystemPartition || !*SystemPartition)
|
||||
|
|
Loading…
Reference in a new issue