From: sfu5 Date: Wed, 20 Mar 2013 08:35:24 +0000 (+0000) Subject: Making the IP6_CONFIG_DATA_RECORD the same size for both IA32 and X64 builds. X-Git-Tag: edk2-stable201903~12635 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=fdc4b0b147b386e966e99893526181dfae9eaeef Making the IP6_CONFIG_DATA_RECORD the same size for both IA32 and X64 builds. Signed-off-by: Kinney, Michael D Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14216 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c index b9840444bb..ddb8dcd379 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c @@ -1,7 +1,7 @@ /** @file The implementation of EFI IPv6 Configuration Protocol. - Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -473,7 +473,7 @@ Ip6ConfigWriteConfigData ( DataRecord = &Variable->DataRecord[Variable->DataRecordCount]; DataRecord->DataType = (EFI_IP6_CONFIG_DATA_TYPE) Index; - DataRecord->DataSize = DataItem->DataSize; + DataRecord->DataSize = (UINT32) DataItem->DataSize; DataRecord->Offset = (UINT16) (Heap - (CHAR8 *) Variable); Variable->DataRecordCount++; diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h index ccb09ccc77..581978bd5e 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h @@ -1,7 +1,7 @@ /** @file Definitions for EFI IPv6 Configuartion Protocol implementation. - Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -129,7 +129,7 @@ typedef struct { typedef struct { UINT16 Offset; - UINTN DataSize; + UINT32 DataSize; EFI_IP6_CONFIG_DATA_TYPE DataType; } IP6_CONFIG_DATA_RECORD;