From eeab16c88d05357b25a6af44d749d8d8e625697a Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Mon, 7 Mar 2016 13:29:44 +0800 Subject: [PATCH] MdeModulePkg/Bds: Fix VS2010/VS2012 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Shumin Qiu --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2