]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add an error print and exit if SEC core is not found.
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jan 2012 17:23:05 +0000 (17:23 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jan 2012 17:23:05 +0000 (17:23 +0000)
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

index 8e1272d4e3a786bf05bcd8931b97c2a55a81b457..7eecbceaad0a086658f997fd68e21e3600ca295b 100644 (file)
@@ -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