From 422a026367b5e4f5f429d5660d61e446b0409e70 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Thu, 12 Feb 2009 02:33:23 +0000 Subject: [PATCH] add return value check. --- MdeModulePkg/Universal/EbcDxe/EbcExecute.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/EbcDxe/EbcExecute.c b/MdeModulePkg/Universal/EbcDxe/EbcExecute.c index 0a15fc938..721ee7119 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 -- 2.11.4.GIT