summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-04 06:01:35 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-04 06:01:35 +0000
commit3a306c100673a9be5c8481361671b7ed5e2c4495 (patch)
tree4e0fc97ee4af0d6722068c815f23333cfc779b42 /MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c
parent8a38e4510e0c59526dc75784b67374d92b063c47 (diff)
downloadedk2-platforms-3a306c100673a9be5c8481361671b7ed5e2c4495.tar.xz
Replace CopyMem() which can be replaced by BaseLib's Read/WriteUnalianedXX() as these are applied to base data type such as UINT32.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7175 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c')
-rw-r--r--MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c b/MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c
index a5c3f1567b..56f2b79a71 100644
--- a/MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c
+++ b/MdeModulePkg/Library/ExtendedIfrSupportLib/Common.c
@@ -117,7 +117,7 @@ IfrLibExtractClassFromHiiHandle (
//
Offset = sizeof (EFI_HII_PACKAGE_LIST_HEADER);
Offset2 = 0;
- CopyMem (&PackageListLength, &HiiPackageList->PackageLength, sizeof (UINT32));
+ PackageListLength = ReadUnaligned32 (&HiiPackageList->PackageLength);
while (Offset < PackageListLength) {
Package = ((UINT8 *) HiiPackageList) + Offset;