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:
@@ -1014,6 +1014,7 @@ BdsLibGetImageHeader (
|
||||
&Root
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
Root = NULL;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user