Revision: 18768
http://sourceforge.net/p/edk2/code/18768
Author: dandanbi
Date: 2015-11-11 08:34:04 +0000 (Wed, 11 Nov 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
Modified: trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c 2015-11-11 06:30:42 UTC
(rev 18767)
+++ trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c 2015-11-11 08:34:04 UTC
(rev 18768)
@@ -406,8 +406,8 @@
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 @@
FreePool (HiiPackageList);
*BufferSize = TempSize;
- *Buffer = FormSetBuffer;
+ *Buffer = (EFI_IFR_FORM_SET *)FormSetBuffer;
return Status;
}
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits