From 4619b183f71c1a7c966927060e99aa1f887f605e Mon Sep 17 00:00:00 2001 From: "Kinney, Michael D" Date: Sat, 28 Jul 2018 00:00:08 -0700 Subject: [PATCH] BaseTools/Capsule: Fix CertType GUID byte order https://bugzilla.tianocore.org/show_bug.cgi?id=1024 Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Common/Uefi/Capsule/FmpAuthHeader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Common/Uefi/Capsule/FmpAuthHeader.py b/BaseTools/Source/Python/Common/Uefi/Capsule/FmpAuthHeader.py index aec52bf772..ae5c1df8a4 100644 --- a/BaseTools/Source/Python/Common/Uefi/Capsule/FmpAuthHeader.py +++ b/BaseTools/Source/Python/Common/Uefi/Capsule/FmpAuthHeader.py @@ -166,7 +166,7 @@ class FmpAuthHeaderClass (object): self.dwLength = dwLength self.wRevision = wRevision self.wCertificateType = wCertificateType - self.CertType = uuid.UUID (bytes = CertType) + self.CertType = uuid.UUID (bytes_le = CertType) self.CertData = Buffer[self._StructSize:self._MonotonicCountSize + self.dwLength] self.Payload = Buffer[self._MonotonicCountSize + self.dwLength:] self._Valid = True -- 2.39.2