From b054c17ea74a5db79fda4c8ec817bda94ede421a Mon Sep 17 00:00:00 2001 From: SmokelessCPUv2 <110113863+SmokelessCPUv2@users.noreply.github.com> Date: Thu, 1 Sep 2022 18:20:33 +0200 Subject: [PATCH] Don't bail out on patter not found --- SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c b/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c index c3a309f..5e8307f 100755 --- a/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c +++ b/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c @@ -370,7 +370,8 @@ EFI_STATUS EFIAPI SREPEntry(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *Syst if (next->ARG3 == 0xFFFFFFFF) { Print(L"No Patter Found\n\r"); - goto cleanup; + //goto cleanup; +break; } } if (next->PatterType == REL_POS_OFFSET) @@ -427,4 +428,4 @@ cleanup: // UINT8 *Buffer = NULL; // UINTN BufferSize = 0; // LocateAndLoadFvFromName(L"SetupUtilityApp", EFI_SECTION_PE32, &Buffer, &BufferSize); -} \ No newline at end of file +}