From 2d5d72c62b3d7bfd4d0d3e59cf252852237aa10c Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Tue, 24 May 2022 14:15:59 +0200 Subject: [PATCH] boot: Fix bad CompareMem call --- src/boot/efi/xbootldr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/efi/xbootldr.c b/src/boot/efi/xbootldr.c index 793e3949b24..f73b5eeb202 100644 --- a/src/boot/efi/xbootldr.c +++ b/src/boot/efi/xbootldr.c @@ -35,7 +35,7 @@ static BOOLEAN verify_gpt(union GptHeaderBuffer *gpt_header_buffer, EFI_LBA lba_ h = &gpt_header_buffer->gpt_header; /* Some superficial validation of the GPT header */ - if (CompareMem(&h->Header.Signature, "EFI PART", sizeof(h->Header.Signature) != 0)) + if (CompareMem(&h->Header.Signature, "EFI PART", sizeof(h->Header.Signature)) != 0) return FALSE; if (h->Header.HeaderSize < 92 || h->Header.HeaderSize > 512) -- 2.47.3