diff options
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Setup.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index dbf6a79b8c..fa721f6d16 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c @@ -2133,6 +2133,7 @@ GetDefaultValueFromAltCfg ( ConfigRequest = NULL;
Result = NULL;
ConfigResp = NULL;
+ Value = NULL;
Storage = Question->Storage;
if ((Storage == NULL) || (Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE)) {
@@ -2213,12 +2214,18 @@ GetDefaultValueFromAltCfg ( //
// Skip <ConfigRequest>
//
- Value = StrStr (ConfigResp, L"&VALUE");
if (IsBufferStorage) {
+ Value = StrStr (ConfigResp, L"&VALUE");
+ ASSERT (Value != NULL);
//
// Skip "&VALUE"
//
Value = Value + 6;
+ } else {
+ Value = StrStr (ConfigResp, Question->VariableName);
+ ASSERT (Value != NULL);
+
+ Value = Value + StrLen (Question->VariableName);
}
if (*Value != '=') {
Status = EFI_NOT_FOUND;
|