diff options
author | Dandan Bi <dandan.bi@intel.com> | 2015-11-11 08:34:04 +0000 |
---|---|---|
committer | dandanbi <dandanbi@Edk2> | 2015-11-11 08:34:04 +0000 |
commit | d6cc284e6f9d2e303a81b3ee8a167eb7252ca54c (patch) | |
tree | 682d54787d19eeef95e007af5df3ca4dd715eb51 /MdeModulePkg | |
parent | 30fbfcc92995c9103ec4357d313a566a7a6a6d92 (diff) | |
download | edk2-platforms-d6cc284e6f9d2e303a81b3ee8a167eb7252ca54c.tar.xz |
MdeModulePkg:Modify the pointer type.
Previously the pointer type is EFI_IFR_FORM_SET, it is incorrect when
do pointer addition without conversion.Now change it to UINT8 type.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18768 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 6 |
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;
}
|