diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-20 09:15:34 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-20 09:15:34 +0000 |
commit | a8ff971524f55118babf06e19f21a357a1e09952 (patch) | |
tree | 3a13bb381166bb9dc7782b689c403722792fdb93 /MdePkg/Library/HiiLib | |
parent | 4882bfdc7e41d6f5a253e52014c140bbca4e87f1 (diff) | |
download | edk2-platforms-a8ff971524f55118babf06e19f21a357a1e09952.tar.xz |
Cleanup Cpu library class and CpuLib instance and BaseLib instance; and add comments for the confused logic in IfrSupportLib instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5694 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/HiiLib')
-rw-r--r-- | MdePkg/Library/HiiLib/HiiLib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdePkg/Library/HiiLib/HiiLib.c b/MdePkg/Library/HiiLib/HiiLib.c index 81a7241cc9..db9112026f 100644 --- a/MdePkg/Library/HiiLib/HiiLib.c +++ b/MdePkg/Library/HiiLib/HiiLib.c @@ -119,6 +119,9 @@ InternalHiiLibPreparePackages ( //
for (Index = 0; Index < NumberOfPackages; Index++) {
PackageArray = (UINT8 *) VA_ARG (Marker, VOID *);
+ //
+ // CopyMem is used for UINT32 to cover the unaligned address access.
+ //
CopyMem (&PackageLength, PackageArray, sizeof (UINT32));
PackageLength -= sizeof (UINT32);
PackageArray += sizeof (UINT32);
|