summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Library/UefiHiiLib/HiiLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
index 1aa0edc62c..74ccd02117 100644
--- a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
+++ b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
@@ -406,8 +406,8 @@ HiiGetFormSetFromHiiHandle(
EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList;
UINT8 *Package;
UINT8 *OpCodeData;
- EFI_IFR_FORM_SET *FormSetBuffer;
- EFI_IFR_FORM_SET *TempBuffer;
+ UINT8 *FormSetBuffer;
+ UINT8 *TempBuffer;
UINT32 Offset;
UINT32 Offset2;
UINT32 PackageListLength;
@@ -483,7 +483,7 @@ HiiGetFormSetFromHiiHandle(
FreePool (HiiPackageList);
*BufferSize = TempSize;
- *Buffer = FormSetBuffer;
+ *Buffer = (EFI_IFR_FORM_SET *)FormSetBuffer;
return Status;
}