mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-17 03:13:11 +00:00
8264684: os::get_summary_cpu_info padded with spaces
Reviewed-by: iklam, ccheung
This commit is contained in:
parent
78b1686c15
commit
af8d3fb21a
@ -1888,6 +1888,10 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
|
||||
status = RegQueryValueEx(key, "ProcessorNameString", NULL, NULL, (byte*)buf, &size);
|
||||
if (status != ERROR_SUCCESS) {
|
||||
strncpy(buf, "## __CPU__", buflen);
|
||||
} else {
|
||||
if (size < buflen) {
|
||||
buf[size] = '\0';
|
||||
}
|
||||
}
|
||||
RegCloseKey(key);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user