From 244bff4e1468914c6b59d0317774edd2d52f85c1 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 24 May 2011 02:08:31 +0000 Subject: [PATCH] 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 --- MdePkg/Library/BasePrintLib/PrintLibInternal.c | 8 ++++---- 1 file 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.
+ Copyright (c) 2006 - 2011, 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 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], -- 2.39.2