CPU (Windows): trims vendor string read from registry

This commit is contained in:
李通洲 committed 2025-09-16 10:55:17 +08:00
1 parent e3eec3f62a
commit 38f4215a94
1 file changed
+2 -1
+2 -1
View File
@@ -242,7 +242,8 @@ static const char* detectByRegistry(FFCPUResult* cpu)
return "ffRegOpenKeyForRead(HKEY_LOCAL_MACHINE, L\"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0\", &hKey, NULL) failed";
ffRegReadStrbuf(hKey, L"ProcessorNameString", &cpu->name, NULL);
ffRegReadStrbuf(hKey, L"VendorIdentifier", &cpu->vendor, NULL);
if (ffRegReadStrbuf(hKey, L"VendorIdentifier", &cpu->vendor, NULL))
ffStrbufTrimRightSpace(&cpu->vendor);
if (cpu->coresLogical == 0)
{