Correct DriverSample ConfigAcess protocol ExtractConfig interface.
Correct SetupBrowser to set default value for default sting ID. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8660 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1779,8 +1779,10 @@ GetQuestionDefault (
|
||||
QUESTION_OPTION *Option;
|
||||
EFI_HII_VALUE *HiiValue;
|
||||
UINT8 Index;
|
||||
EFI_STRING StrValue;
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
Status = EFI_SUCCESS;
|
||||
StrValue = NULL;
|
||||
|
||||
//
|
||||
// Statement don't have storage, skip them
|
||||
@@ -1823,6 +1825,14 @@ GetQuestionDefault (
|
||||
CopyMem (HiiValue, &Default->Value, sizeof (EFI_HII_VALUE));
|
||||
}
|
||||
|
||||
if (HiiValue->Type == EFI_IFR_TYPE_STRING) {
|
||||
StrValue = HiiGetString (FormSet->HiiHandle, HiiValue->Value.string, NULL);
|
||||
if (StrValue == NULL) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
Question->BufferValue = AllocateCopyPool (StrSize (StrValue), StrValue);
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user