mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
commit
81128e2384
1 changed files with 4 additions and 0 deletions
|
@ -129,7 +129,11 @@ void generic_get_cpu_list(const struct match_entry_t* matchtable, int count,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!good) continue;
|
if (!good) continue;
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
list->names[n++] = _strdup(matchtable[i].name);
|
||||||
|
#else
|
||||||
list->names[n++] = strdup(matchtable[i].name);
|
list->names[n++] = strdup(matchtable[i].name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
list->num_entries = n;
|
list->num_entries = n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue