[v1.05][X86] Do not show empty SSE if not supported (#260)

This commit is contained in:
Dr-Noob
2024-08-02 10:09:51 +01:00
parent 6164884415
commit cb186a2f97
2 changed files with 11 additions and 4 deletions

View File

@@ -1096,8 +1096,14 @@ char* get_str_sse(struct cpuInfo* cpu) {
last+=SSE4_2_sl;
}
//Purge last comma
string[last-1] = '\0';
if (last == 0) {
snprintf(string, 2+1, "No");
}
else {
//Purge last comma
string[last-1] = '\0';
}
return string;
}