From: Jan Janssen Date: Tue, 24 May 2022 12:15:59 +0000 (+0200) Subject: boot: Fix bad CompareMem call X-Git-Tag: v252-rc1~933 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d5d72c62b3d7bfd4d0d3e59cf252852237aa10c;p=thirdparty%2Fsystemd.git boot: Fix bad CompareMem call --- 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)