From e618d0cb67103c84e5d15374d88980c17683597d Mon Sep 17 00:00:00 2001 From: vanjeff Date: Thu, 12 Feb 2009 02:33:23 +0000 Subject: add return value check. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7507 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/EbcDxe/EbcExecute.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'MdeModulePkg') 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 -- cgit v1.2.3