mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
Utilities/TestPeCoff: Properly error-exit on load failure
This commit is contained in:
parent
85148005f3
commit
0fb834bd84
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user