diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-12 03:30:58 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-12 03:30:58 +0000 |
commit | da166a5dbd9fbd560ddf21eedcbffe571281f7c5 (patch) | |
tree | 4b088ea8eeecc64fc3f265aad8f24317d0a25d00 /IntelFrameworkModulePkg/Library/GenericBdsLib | |
parent | b3011f40417e12cadf8840d095c590c68f0868a2 (diff) | |
download | edk2-platforms-da166a5dbd9fbd560ddf21eedcbffe571281f7c5.tar.xz |
Minor code enhancement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9711 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Library/GenericBdsLib')
-rw-r--r-- | IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c index f937be27a6..351dfd5913 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -1,7 +1,7 @@ /** @file
Misc BDS library function
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>
+Copyright (c) 2004 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -1006,11 +1006,12 @@ BdsLibGetImageHeader ( Root = NULL;
goto Done;
}
-
+ ASSERT (Root != NULL);
Status = Root->Open (Root, &ThisFile, FileName, EFI_FILE_MODE_READ, 0);
if (EFI_ERROR (Status)) {
goto Done;
}
+ ASSERT (ThisFile != NULL);
//
// Get file size
|