From 779808545d68d77a5280a1c323066594808c2d5f Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 5 Jan 2009 02:20:16 +0000 Subject: Fix VS2005 build error git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7181 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c | 1 + MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'MdeModulePkg/Library') diff --git a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c index 1859f026c8..81570a2111 100644 --- a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c +++ b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c @@ -468,6 +468,7 @@ SaveOverridesMapping ( // ItemIndex now points to the next PLATFORM_OVERRIDE_ITEM which is not covered by VariableNeededSize // VariableBuffer = AllocateZeroPool (VariableNeededSize); + ASSERT (VariableBuffer != NULL); ASSERT ((UINTN) VariableBuffer % sizeof(UINTN) == 0); // diff --git a/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c b/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c index b9b62b2bac..0271319f2d 100644 --- a/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c +++ b/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c @@ -178,7 +178,7 @@ UpdateFormPackageData ( } ExtendOpCode = ((EFI_IFR_GUID_LABEL *) IfrOpHdr)->ExtendOpCode; - LabelNumber = ReadUnaligned16 (&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Number); + LabelNumber = ReadUnaligned16 ((UINT16 *)(VOID*)&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Number); if ((ExtendOpCode != EFI_IFR_EXTEND_OP_LABEL) || (LabelNumber != Label) || !CompareGuid ((EFI_GUID *)(UINTN)(&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Guid), &mIfrVendorGuid)) { // -- cgit v1.2.3