mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-02 22:51:28 +01:00
Fix SlotCounts >= MAX_RAM_SLOTS to SlotCounts > MAX_RAM_SLOTS
This commit is contained in:
parent
cee098d1e6
commit
2988fb41be
@ -2264,7 +2264,7 @@ void PatchSmbios(const SmbiosInjectedSettings& smbiosSettings) //continue
|
||||
}
|
||||
PatchTableTypeSome();
|
||||
auto SlotCounts = smbiosSettings.RamSlotCount;
|
||||
if ( SlotCounts >= MAX_RAM_SLOTS ) {
|
||||
if ( SlotCounts > MAX_RAM_SLOTS ) {
|
||||
log_technical_bug("GetTableType16() assign smbiosSettings.RamSlotCount a value bigger than MAX_RAM_SLOTS");
|
||||
SlotCounts = MAX_RAM_SLOTS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user