Added DMI reader for macOS.
This commit is contained in:
parent
9dffcdaddd
commit
24c290963a
4 changed files with 122 additions and 6 deletions
|
@ -70,6 +70,10 @@ bool xmrig::DmiReader::decode(uint8_t *buf)
|
|||
while (static_cast<uint32_t>(next - buf + 1) < m_size && (next[0] != 0 || next[1] != 0)) {
|
||||
next++;
|
||||
}
|
||||
|
||||
# ifdef XMRIG_OS_APPLE
|
||||
while ((unsigned long)(next - buf + 1) < m_size && (next[0] == 0 && next[1] == 0))
|
||||
# endif
|
||||
next += 2;
|
||||
|
||||
if (static_cast<uint32_t>(next - buf) > m_size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue