[BOOTLIB]

- Fix operator precedence in call to MmMdAddDescriptorToList. CID 1341191.

svn path=/trunk/; revision=73675
This commit is contained in:
Thomas Faber 2017-02-04 17:00:26 +00:00
parent cfe19bdf5f
commit b1de4fb737

View file

@ -1680,8 +1680,8 @@ MmFwGetMemoryMap (
Status = MmMdAddDescriptorToList(MemoryMap, Status = MmMdAddDescriptorToList(MemoryMap,
Descriptor, Descriptor,
BL_MM_ADD_DESCRIPTOR_TRUNCATE_FLAG | BL_MM_ADD_DESCRIPTOR_TRUNCATE_FLAG |
(Flags & BL_MM_FLAG_REQUEST_COALESCING) ? ((Flags & BL_MM_FLAG_REQUEST_COALESCING) ?
BL_MM_ADD_DESCRIPTOR_COALESCE_FLAG : 0); BL_MM_ADD_DESCRIPTOR_COALESCE_FLAG : 0));
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
EfiPrintf(L"Failed to add full descriptor: %lx\r\n", Status); EfiPrintf(L"Failed to add full descriptor: %lx\r\n", Status);