Set Root=NULL if some error code is returned from OpenVolume() interface of EfiSimpleFileSystem Protocol. The implementation of that interface does not necessarily set the output parameter of Root NULL if error code is returned.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6085 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-10-08 10:25:31 +00:00
parent 1536925933
commit 1d5df82280
1 changed files with 1 additions and 0 deletions

View File

@ -1014,6 +1014,7 @@ BdsLibGetImageHeader (
&Root
);
if (EFI_ERROR (Status)) {
Root = NULL;
goto Done;
}