add return value check.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7507 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2009-02-12 02:33:23 +00:00
parent 892b7f90c5
commit e618d0cb67
1 changed files with 5 additions and 1 deletions

View File

@ -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