summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-03-07 13:29:44 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-03-07 13:34:21 +0800
commiteeab16c88d05357b25a6af44d749d8d8e625697a (patch)
tree5de326eb10488f4f29f02980686a8496859eb2d4
parent5f87f979c6f5b05f97eab02f7e3c01fabeb839c6 (diff)
downloadedk2-eeab16c88d05357b25a6af44d749d8d8e625697a.tar.gz
edk2-eeab16c88d05357b25a6af44d749d8d8e625697a.tar.bz2
edk2-eeab16c88d05357b25a6af44d749d8d8e625697a.zip
MdeModulePkg/Bds: Fix VS2010/VS2012 build failure.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
index 18f835a9a9..4225e80f42 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
@@ -1667,6 +1667,8 @@ BmGetFileBufferFromLoadFileFileSystem (
Handles = NULL;
HandleCount = 0;
}
+
+ Handle = NULL;
for (Index = 0; Index < HandleCount; Index++) {
Node = DevicePathFromHandle (Handles[Index]);
Status = gBS->LocateDevicePath (&gEfiLoadFileProtocolGuid, &Node, &Handle);