mirror of https://github.com/acidanthera/audk.git
Minor code enhancement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9711 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b3011f4041
commit
da166a5dbd
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Misc BDS library function
|
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
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -1006,11 +1006,12 @@ BdsLibGetImageHeader (
|
||||||
Root = NULL;
|
Root = NULL;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
ASSERT (Root != NULL);
|
||||||
Status = Root->Open (Root, &ThisFile, FileName, EFI_FILE_MODE_READ, 0);
|
Status = Root->Open (Root, &ThisFile, FileName, EFI_FILE_MODE_READ, 0);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
ASSERT (ThisFile != NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get file size
|
// Get file size
|
||||||
|
|
Loading…
Reference in New Issue