summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/EbcDxe/EbcExecute.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcExecute.c b/MdeModulePkg/Universal/EbcDxe/EbcExecute.c
index 0a15fc938a..721ee71197 100644
--- a/MdeModulePkg/Universal/EbcDxe/EbcExecute.c
+++ b/MdeModulePkg/Universal/EbcDxe/EbcExecute.c
@@ -1825,6 +1825,7 @@ ExecuteBREAK (
IN VM_CONTEXT *VmPtr
)
{
+ EFI_STATUS Status;
UINT8 Operands;
VOID *EbcEntryPoint;
VOID *Thunk;
@@ -1887,7 +1888,10 @@ ExecuteBREAK (
//
// Now create a new thunk
//
- EbcCreateThunks (VmPtr->ImageHandle, EbcEntryPoint, &Thunk, 0);
+ Status = EbcCreateThunks (VmPtr->ImageHandle, EbcEntryPoint, &Thunk, 0);
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
//
// Finally replace the EBC entry point memory with the thunk address