summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-24 02:08:31 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-24 02:08:31 +0000
commit244bff4e1468914c6b59d0317774edd2d52f85c1 (patch)
tree81f6b4ce0d01eae3cba66483045d3ced444ee7d3 /MdePkg
parent4ec21e8b50845e0a89a8d93f3909e4522ee6b434 (diff)
downloadedk2-platforms-244bff4e1468914c6b59d0317774edd2d52f85c1.tar.xz
Update BasePrintLib to handle the unaligned GUID.
Signed-off-by: lgao4 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11697 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BasePrintLib/PrintLibInternal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c b/MdePkg/Library/BasePrintLib/PrintLibInternal.c
index 085d37f151..1b85490655 100644
--- a/MdePkg/Library/BasePrintLib/PrintLibInternal.c
+++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.c
@@ -1,7 +1,7 @@
/** @file
Print Library internal worker functions.
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -636,9 +636,9 @@ BasePrintLibSPrintMarker (
MAXIMUM_VALUE_CHARACTERS,
0,
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
- TmpGuid->Data1,
- TmpGuid->Data2,
- TmpGuid->Data3,
+ ReadUnaligned32 (&(TmpGuid->Data1)),
+ ReadUnaligned16 (&(TmpGuid->Data2)),
+ ReadUnaligned16 (&(TmpGuid->Data3)),
TmpGuid->Data4[0],
TmpGuid->Data4[1],
TmpGuid->Data4[2],