MdeModulePkg/Bds: Fix build failures of VS tool chain

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
This commit is contained in:
Ruiyu Ni 2016-04-07 10:13:39 +08:00
parent eccc28bfcb
commit 542417972d
2 changed files with 2 additions and 1 deletions

View File

@ -699,6 +699,7 @@ BmExpandUriDevicePath (
Handles = NULL;
}
FileBuffer = NULL;
for (Index = 0; Index < HandleCount; Index++) {
FileBuffer = BmGetFileBufferFromLoadFile (Handles[Index], FilePath, FullPath, FileSize);
if (FileBuffer != NULL) {

View File

@ -232,7 +232,7 @@ BmSetMemoryTypeInformationVariable (
// Do not count the reserved memory occupied by RAM Disk.
//
if (CurrentMemoryTypeInformation[Index1].Type == EfiReservedMemoryType) {
CurrentMemoryTypeInformation[Index1].NumberOfPages -= RamDiskSizeInPages;
CurrentMemoryTypeInformation[Index1].NumberOfPages -= (UINT32) RamDiskSizeInPages;
}
//