Don't bail out on patter not found

This commit is contained in:
SmokelessCPUv2 2022-09-01 18:20:33 +02:00 committed by GitHub
parent 13a821d062
commit b054c17ea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,7 +370,8 @@ EFI_STATUS EFIAPI SREPEntry(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *Syst
if (next->ARG3 == 0xFFFFFFFF) if (next->ARG3 == 0xFFFFFFFF)
{ {
Print(L"No Patter Found\n\r"); Print(L"No Patter Found\n\r");
goto cleanup; //goto cleanup;
break;
} }
} }
if (next->PatterType == REL_POS_OFFSET) if (next->PatterType == REL_POS_OFFSET)
@ -427,4 +428,4 @@ cleanup:
// UINT8 *Buffer = NULL; // UINT8 *Buffer = NULL;
// UINTN BufferSize = 0; // UINTN BufferSize = 0;
// LocateAndLoadFvFromName(L"SetupUtilityApp", EFI_SECTION_PE32, &Buffer, &BufferSize); // LocateAndLoadFvFromName(L"SetupUtilityApp", EFI_SECTION_PE32, &Buffer, &BufferSize);
} }