summaryrefslogtreecommitdiff
path: root/src/efi/pefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/efi/pefile.c')
-rw-r--r--src/efi/pefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/efi/pefile.c b/src/efi/pefile.c
index 5d750e0..e6fedbc 100644
--- a/src/efi/pefile.c
+++ b/src/efi/pefile.c
@@ -154,7 +154,7 @@ EFI_STATUS pefile_locate_sections(EFI_FILE *dir, CHAR16 *path, CHAR8 **sections,
goto out;
}
for (j = 0; sections[j]; j++) {
- if (strcmpa(sections[j], sect.Name) != 0)
+ if (CompareMem(sect.Name, sections[j], strlena(sections[j])) != 0)
continue;
if (addrs)