Add sample code for EFI_IFR_QUESTION_REF3 opcode.

Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12783 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2011-11-25 07:00:05 +00:00
parent 2bcc713e74
commit b204f2b527
3 changed files with 9 additions and 1 deletions

View File

@ -1909,6 +1909,14 @@ DriverSampleInit (
PrivateData->HiiHandle[1] = HiiHandle[1];
//
// Update the device path string.
//
if (HiiSetString (HiiHandle[0], STRING_TOKEN (STR_DEVICE_PATH), (EFI_STRING) &mHiiVendorDevicePath0, NULL) == 0) {
DriverSampleUnload (ImageHandle);
return EFI_OUT_OF_RESOURCES;
}
//
// Very simple example of how one would update a string that is already
// in the HII database

View File

@ -320,7 +320,7 @@ formset
minimum = 0,
maximum = 0xf0,
step = 0,
default = 21,
default value = questionrefval(devicepath = STRING_TOKEN (STR_DEVICE_PATH), guid = DRIVER_SAMPLE_FORMSET_GUID, 0x1111),
inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),
ideqval MyIfrNVData.HowOldAreYouInYearsManual == 99