Fix KW issue

It should use local variable ResetReason instead of OsBootOptionList
in case of OS boot option is not available.

Signed-off-by: Guo Dong <guo.dong@intel.com>
This commit is contained in:
Guo Dong 2019-11-04 22:38:16 -07:00
parent ba38c1bd6f
commit 5de02e118d
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ AddSblCommandLine (
//
if ((OsConfigData != NULL) && (OsConfigData->EnableCrashMode != 0)) {
Data8 = (UINT8)~(ResetCold | ResetPowerOn | ResetGlobal | ResetWakeS3);
if ((OsBootOptionList->ResetReason & Data8) != 0) {
if ((ResetReason & Data8) != 0) {
AsciiStrCatS (CommandLine, MaxCmdSize, " boot_target=CRASHMODE");
}
}