summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-04-07 10:13:39 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-04-07 11:23:07 +0800
commit542417972de568fc8c83880042ea7553d901fdb9 (patch)
tree6cb1ae2bab1b0fd7713c6a28fa1996f826577eb1
parenteccc28bfcb91b5d72adf173d7404652c7aa63c26 (diff)
downloadedk2-platforms-542417972de568fc8c83880042ea7553d901fdb9.tar.xz
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>
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c1
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
index 2eb8971ba0..beb2eafe29 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
@@ -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) {
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c b/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
index c6ac242094..29c1bfaaeb 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
@@ -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;
}
//