mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[SETUPLIB] Fix possible out-of-bound buffer if BootStore->Type is unknown/invalid
This commit is contained in:
parent
698e1a3782
commit
043ce2c832
1 changed files with 2 additions and 2 deletions
|
@ -1016,7 +1016,7 @@ AddBootStoreEntry(
|
|||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("Loader type %d is currently unsupported!\n", NtosBootLoaders[BootStore->Type].Type);
|
||||
DPRINT1("Loader type %d is currently unsupported!\n", BootStore->Type);
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
}
|
||||
|
@ -1152,7 +1152,7 @@ QueryBootStoreOptions(
|
|||
// if (BootStore->Type >= BldrTypeMax || NtosBootLoaders[BootStore->Type].Type >= BldrTypeMax)
|
||||
if (BootStore->Type != FreeLdr && BootStore->Type != NtLdr)
|
||||
{
|
||||
DPRINT1("Loader type %d is currently unsupported!\n", NtosBootLoaders[BootStore->Type].Type);
|
||||
DPRINT1("Loader type %d is currently unsupported!\n", BootStore->Type);
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue