diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-12 02:33:23 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-12 02:33:23 +0000 |
commit | e618d0cb67103c84e5d15374d88980c17683597d (patch) | |
tree | c55e77ca6e0691472e877bfea97f790a702bd884 /MdeModulePkg/Universal/EbcDxe | |
parent | 892b7f90c5a2abd2e88e1f5787d9e6dad9f8fab5 (diff) | |
download | edk2-platforms-e618d0cb67103c84e5d15374d88980c17683597d.tar.xz |
add return value check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7507 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/EbcDxe')
-rw-r--r-- | MdeModulePkg/Universal/EbcDxe/EbcExecute.c | 6 |
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
|