Skip to content

Commit

Permalink
Utilities, Library: Fixed OpenCore compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailKrichanov committed Nov 10, 2023
1 parent e133865 commit 07b1aa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Library/OcPeCoffExtLib/OcPeCoffExtLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ PeCoffVerifyAppleSignature (
ImageStatus = PeCoffInitializeContext (
&ImageContext,
PeImage,
*ImageSize
*ImageSize,
UefiImageOriginFv
);
if (EFI_ERROR (ImageStatus)) {
DEBUG ((DEBUG_INFO, "OCPE: PeCoff init failure - %r\n", ImageStatus));
Expand Down Expand Up @@ -482,7 +483,8 @@ PeCoffGetApfsDriverVersion (
ImageStatus = PeCoffInitializeContext (
&ImageContext,
DriverBuffer,
DriverSize
DriverSize,
UefiImageOriginFv
);
if (EFI_ERROR (ImageStatus)) {
DEBUG ((DEBUG_INFO, "OCPE: PeCoff init apfs failure - %r\n", ImageStatus));
Expand Down
2 changes: 1 addition & 1 deletion Utilities/TestPeCoff/PeCoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ PeCoffTestLoadFull (
UINT32 DestinationAlignment;
UINT8 HashContext;

Status = PeCoffInitializeContext (&Context, FileBuffer, FileSize);
Status = PeCoffInitializeContext (&Context, FileBuffer, FileSize, UefiImageOriginFv);
if (EFI_ERROR (Status)) {
return EFI_UNSUPPORTED;
}
Expand Down

0 comments on commit 07b1aa3

Please sign in to comment.