mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-16 16:35:45 +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;
|
||||
}
|
||||
if (!good) continue;
|
||||
#if defined(_MSC_VER)
|
||||
list->names[n++] = _strdup(matchtable[i].name);
|
||||
#else
|
||||
list->names[n++] = strdup(matchtable[i].name);
|
||||
#endif
|
||||
}
|
||||
list->num_entries = n;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue