projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
794da5a
)
boot: Fix bad CompareMem call
author
Jan Janssen
<medhefgo@web.de>
Tue, 24 May 2022 12:15:59 +0000
(14:15 +0200)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Tue, 24 May 2022 15:53:36 +0000
(16:53 +0100)
src/boot/efi/xbootldr.c
patch
|
blob
|
history
diff --git
a/src/boot/efi/xbootldr.c
b/src/boot/efi/xbootldr.c
index 793e3949b24140e355e5bd2b108a4bfb9a9d2ebe..f73b5eeb202ff609789034c86c5aee45fce1dd62 100644
(file)
--- 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)