From 1e673c49350d5961ec441e05514f16fbb1e67ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Ha=CC=88user?= <8659494+mhaeuser@users.noreply.github.com> Date: Mon, 8 May 2023 12:32:20 +0200 Subject: [PATCH] SecurityPkg/Tcd2Dxe: Fix UefiImage initialization --- SecurityPkg/Tcg/Tcg2Dxe/MeasureBootUefiImage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecurityPkg/Tcg/Tcg2Dxe/MeasureBootUefiImage.c b/SecurityPkg/Tcg/Tcg2Dxe/MeasureBootUefiImage.c index b3636d2549..7d77df60a9 100644 --- a/SecurityPkg/Tcg/Tcg2Dxe/MeasureBootUefiImage.c +++ b/SecurityPkg/Tcg/Tcg2Dxe/MeasureBootUefiImage.c @@ -84,7 +84,7 @@ MeasureUefiImageAndExtend ( } // FIXME: This is just an ugly wrapper, the types should match (UINTN <-> VOID *), fix the libs - UefiImageHashImageDefault (NULL, HashHandle, HashUpdate); + UefiImageHashImageDefault (&ImageContext, HashHandle, HashUpdate); if (EFI_ERROR (Status)) { return Status; }