From 9cf20bbf9a8d6c0322906fd982826a9452cb3ff8 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Fri, 6 Jan 2012 17:23:05 +0000 Subject: [PATCH] Add an error print and exit if SEC core is not found. signed-off-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12912 6f19259b-4bc3-4df7-8a09-765794883524 --- EmulatorPkg/Unix/Host/Host.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/EmulatorPkg/Unix/Host/Host.c b/EmulatorPkg/Unix/Host/Host.c index 8e1272d4e3..7eecbceaad 100644 --- a/EmulatorPkg/Unix/Host/Host.c +++ b/EmulatorPkg/Unix/Host/Host.c @@ -287,6 +287,12 @@ main ( printf ("\n"); } + + if (SecFile == NULL) { + printf ("ERROR : SEC not found!\n"); + exit (1); + } + // // Calculate memory regions and store the information in the gSystemMemory // global for later use. The autosizing code will use this data to -- 2.39.2