mirror of https://github.com/acidanthera/audk.git
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:
parent
eccc28bfcb
commit
542417972d
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue