]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
MdeModulePkg/Bds: Fix VS2010/VS2012 build failure.
[mirror_edk2.git] / 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