]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePrintLib/PrintLibInternal.c
Update BasePrintLib to handle the unaligned GUID.
[mirror_edk2.git] / MdePkg / Library / BasePrintLib / PrintLibInternal.c
index 085d37f151cf94cbbfd8f7978e7b045397edc40e..1b854906559be0c3ffe9973506ac6ee093dc405c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Print Library internal worker functions.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -636,9 +636,9 @@ BasePrintLibSPrintMarker (
             MAXIMUM_VALUE_CHARACTERS, \r
             0,\r
             "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",\r
-            TmpGuid->Data1,\r
-            TmpGuid->Data2,\r
-            TmpGuid->Data3,\r
+            ReadUnaligned32 (&(TmpGuid->Data1)),\r
+            ReadUnaligned16 (&(TmpGuid->Data2)),\r
+            ReadUnaligned16 (&(TmpGuid->Data3)),\r
             TmpGuid->Data4[0],\r
             TmpGuid->Data4[1],\r
             TmpGuid->Data4[2],\r