Fix string comparison for hiding "Unknown" CPU name

See #10620
This commit is contained in:
Henrik Rydgård committed 2021-08-17 09:19:58 +02:00
1 parent 57dc6be2dc
commit 3c62fbc973
1 file changed
+1 -1
+1 -1
View File
@@ -482,7 +482,7 @@ void SystemInfoScreen::CreateViews() {
deviceSpecs->Add(new ItemHeader(si->T("CPU Information")));
// Don't bother showing the CPU name if we don't have one.
if (cpu_info.brand_string != "Unknown") {
if (strcmp(cpu_info.brand_string, "Unknown") != 0) {
deviceSpecs->Add(new InfoItem(si->T("CPU Name", "Name"), cpu_info.brand_string));
}