From 1d5df82280c85e473b60d2e2740058a9ec0a9e36 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Wed, 8 Oct 2008 10:25:31 +0000 Subject: 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 --- MdeModulePkg/Library/GenericBdsLib/BdsMisc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c index 9482cbe119..499d0f30b3 100644 --- a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -1014,6 +1014,7 @@ BdsLibGetImageHeader ( &Root ); if (EFI_ERROR (Status)) { + Root = NULL; goto Done; } -- cgit v1.2.3