diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 07:00:05 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 07:00:05 +0000 |
commit | b204f2b5272363dec5fc4d8fc78c8af4c3eb8288 (patch) | |
tree | 44ccdd87e153dd18614f70bf7919bd0059027c0e /MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | |
parent | 2bcc713e74b944bb5aefb433ef33fb4002a62d76 (diff) | |
download | edk2-platforms-b204f2b5272363dec5fc4d8fc78c8af4c3eb8288.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c')
-rw-r--r-- | MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index 37a592ce90..4b44330ec8 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -1910,6 +1910,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
//
|