]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Bds: Fix VS2010/VS2012 build failure.
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 7 Mar 2016 05:29:44 +0000 (13:29 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 7 Mar 2016 05:34:21 +0000 (13:34 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c

index 18f835a9a973ee725f7332dc786bce34a813275a..4225e80f42a45032316a606fe8896a6b468e365b 100644 (file)
@@ -1667,6 +1667,8 @@ BmGetFileBufferFromLoadFileFileSystem (
     Handles = NULL;\r
     HandleCount = 0;\r
   }\r
+\r
+  Handle = NULL;\r
   for (Index = 0; Index < HandleCount; Index++) {\r
     Node = DevicePathFromHandle (Handles[Index]);\r
     Status = gBS->LocateDevicePath (&gEfiLoadFileProtocolGuid, &Node, &Handle);\r