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
This commit is contained in:
Dandan Bi 2015-11-11 08:34:04 +00:00 committed by dandanbi
parent 30fbfcc929
commit d6cc284e6f
1 changed files with 3 additions and 3 deletions

View File

@ -406,8 +406,8 @@ HiiGetFormSetFromHiiHandle(
EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList; EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList;
UINT8 *Package; UINT8 *Package;
UINT8 *OpCodeData; UINT8 *OpCodeData;
EFI_IFR_FORM_SET *FormSetBuffer; UINT8 *FormSetBuffer;
EFI_IFR_FORM_SET *TempBuffer; UINT8 *TempBuffer;
UINT32 Offset; UINT32 Offset;
UINT32 Offset2; UINT32 Offset2;
UINT32 PackageListLength; UINT32 PackageListLength;
@ -483,7 +483,7 @@ HiiGetFormSetFromHiiHandle(
FreePool (HiiPackageList); FreePool (HiiPackageList);
*BufferSize = TempSize; *BufferSize = TempSize;
*Buffer = FormSetBuffer; *Buffer = (EFI_IFR_FORM_SET *)FormSetBuffer;
return Status; return Status;
} }