Utilities/TestPeCoff: Properly error-exit on load failure

This commit is contained in:
Marvin Häuser 2023-05-08 10:57:03 +02:00
parent 85148005f3
commit 0fb834bd84

View File

@ -99,7 +99,10 @@ PeCoffTestLoad (
CHAR8 *PdbPath;
UINT32 PdbPathSize;
(VOID)PeCoffLoadImage (Context, Destination, DestinationSize);
Status = PeCoffLoadImage (Context, Destination, DestinationSize);
if (EFI_ERROR (Status)) {
return Status;
}
Status = PeCoffGetPdbPath (Context, (CONST CHAR8 **)&PdbPath, &PdbPathSize);
if (!EFI_ERROR (Status)) {