[EHL] Fix Stage2 Boot Option checking

Fix mPchSciSupported flag checking before changing the
flag value of boot option.
This bug was introduced from commit
b78cbcf128

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
This commit is contained in:
Ong Kok Tong 2021-06-25 17:59:55 +08:00 committed by Maurice Ma
parent 1db0acf9ba
commit ad6a88e34d
1 changed files with 1 additions and 1 deletions

View File

@ -1846,7 +1846,7 @@ UpdateOsBootMediumInfo (
FillBootOptionListFromCfgData (OsBootOptionList);
// Disable PreOS checker since the SKU doesn't support it
if (mPchSciSupported) {
if (!mPchSciSupported) {
for (Idx = 0; Idx < OsBootOptionList->OsBootOptionCount; Idx++) {
BootOption = &(OsBootOptionList->OsBootOption[Idx]);
if ((BootOption->BootFlags & BOOT_FLAGS_PREOS) != 0) {