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>
This commit is contained in:
Ruiyu Ni 2016-03-07 13:29:44 +08:00
parent 5f87f979c6
commit eeab16c88d
1 changed files with 2 additions and 0 deletions

View File

@ -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);