提交 bf6e54da 编写于 作者: G Goldfish64

OcSmbiosPatch: Fix incorrect cast for max memory capacity

Closes https://github.com/acidanthera/bugtracker/issues/1383
上级 4682be2c
......@@ -678,7 +678,7 @@ CreateMemoryArray (
// Maximum Capacity is represented in KB.
//
if (*Data->MemoryMaxCapacity < SIZE_2TB) {
Table->CurrentPtr.Standard.Type16->MaximumCapacity = (UINT16)(*Data->MemoryMaxCapacity / SIZE_1KB);
Table->CurrentPtr.Standard.Type16->MaximumCapacity = (UINT32)(*Data->MemoryMaxCapacity / SIZE_1KB);
Table->CurrentPtr.Standard.Type16->ExtendedMaximumCapacity = 0;
} else {
Table->CurrentPtr.Standard.Type16->MaximumCapacity = SIZE_2TB / SIZE_1KB;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册