From: Kinney, Michael D Date: Sat, 28 Jul 2018 07:00:08 +0000 (-0700) Subject: BaseTools/Capsule: Fix CertType GUID byte order X-Git-Tag: edk2-stable201903~1298 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=4619b183f71c1a7c966927060e99aa1f887f605e 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 --- 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