Fix SlotCounts >= MAX_RAM_SLOTS to SlotCounts > MAX_RAM_SLOTS

This commit is contained in:
jief666 2021-10-19 12:27:41 +02:00
parent cee098d1e6
commit 2988fb41be

View File

@ -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;
}