]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/GenericBdsLib/BdsMisc.c
Set Root=NULL if some error code is returned from OpenVolume() interface of EfiSimple...
[mirror_edk2.git] / MdeModulePkg / Library / GenericBdsLib / BdsMisc.c
index 9482cbe119253a62c1bdc2eada787dd6872e4cc3..499d0f30b3a9fa9e464c3b5a8a9d41cc1ad7a7fd 100644 (file)
@@ -1014,6 +1014,7 @@ BdsLibGetImageHeader (
                      &Root\r
                      );\r
   if (EFI_ERROR (Status)) {\r
+    Root = NULL;
     goto Done;\r
   }\r
 \r