]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Bds: Fix build failures of VS tool chain
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 7 Apr 2016 02:13:39 +0000 (10:13 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 7 Apr 2016 03:23:07 +0000 (11:23 +0800)
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>
MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c

index 2eb8971ba0f6b709bdbc6967458be152aff57b2a..beb2eafe2943af2c8a0f32169d4ab61647b394d7 100644 (file)
@@ -699,6 +699,7 @@ BmExpandUriDevicePath (
     Handles = NULL;\r
   }\r
 \r
+  FileBuffer = NULL;\r
   for (Index = 0; Index < HandleCount; Index++) {\r
     FileBuffer = BmGetFileBufferFromLoadFile (Handles[Index], FilePath, FullPath, FileSize);\r
     if (FileBuffer != NULL) {\r
index c6ac242094692d7690c18c392ea6933ab02b55ef..29c1bfaaebc1f9b9d2d435dd4023c8111ac9e0e5 100644 (file)
@@ -232,7 +232,7 @@ BmSetMemoryTypeInformationVariable (
     // Do not count the reserved memory occupied by RAM Disk.\r
     //\r
     if (CurrentMemoryTypeInformation[Index1].Type == EfiReservedMemoryType) {\r
-      CurrentMemoryTypeInformation[Index1].NumberOfPages -= RamDiskSizeInPages;\r
+      CurrentMemoryTypeInformation[Index1].NumberOfPages -= (UINT32) RamDiskSizeInPages;\r
     }\r
 \r
     //\r