Add support for older DMI formats on Linux.
This commit is contained in:
parent
05e6f66169
commit
3b8d081c8c
5 changed files with 72 additions and 14 deletions
|
@ -62,8 +62,7 @@ bool xmrig::DmiReader::read()
|
|||
m_version = (smb->SMBIOSMajorVersion << 16) + (smb->SMBIOSMinorVersion << 8) + smb->DmiRevision;
|
||||
m_size = smb->Length;
|
||||
|
||||
const bool rc = decode(smb->SMBIOSTableData);
|
||||
HeapFree(GetProcessHeap(), 0, smb);
|
||||
|
||||
return rc;
|
||||
return decode(smb->SMBIOSTableData, [smb]() {
|
||||
HeapFree(GetProcessHeap(), 0, smb);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue