mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[DXDIAG] If ProcessorNameString not found, fall back to Identifier
It also should have its own routine for detecting CPU name, add a comment. Windows XP and 2003 does have CPU name strings in dxdiagn.dll. CORE-17413
This commit is contained in:
parent
e9f9f83c0a
commit
740beb65e6
1 changed files with 11 additions and 1 deletions
|
@ -196,6 +196,7 @@ InitializeSystemPage(HWND hwndDlg)
|
|||
OSVERSIONINFO VersionInfo;
|
||||
PVOID SMBiosBuf;
|
||||
PCHAR DmiStrings[ID_STRINGS_MAX] = { 0 };
|
||||
BOOL Result;
|
||||
|
||||
/* set date/time */
|
||||
szTime[0] = L'\0';
|
||||
|
@ -322,7 +323,16 @@ InitializeSystemPage(HWND hwndDlg)
|
|||
FreeSMBiosData(SMBiosBuf);
|
||||
|
||||
/* set processor string */
|
||||
if (GetRegValue(HKEY_LOCAL_MACHINE, L"Hardware\\Description\\System\\CentralProcessor\\0", L"ProcessorNameString", REG_SZ, szDesc, sizeof(szDesc)))
|
||||
Result = GetRegValue(HKEY_LOCAL_MACHINE, L"Hardware\\Description\\System\\CentralProcessor\\0", L"ProcessorNameString", REG_SZ, szDesc, sizeof(szDesc));
|
||||
if (!Result)
|
||||
{
|
||||
/* Processor Brand String not found */
|
||||
/* FIXME: Implement CPU name detection routine */
|
||||
|
||||
/* Finally try to use Identifier string */
|
||||
Result = GetRegValue(HKEY_LOCAL_MACHINE, L"Hardware\\Description\\System\\CentralProcessor\\0", L"Identifier", REG_SZ, szDesc, sizeof(szDesc));
|
||||
}
|
||||
if (Result)
|
||||
{
|
||||
TrimDmiStringW(szDesc);
|
||||
/* FIXME retrieve current speed */
|
||||
|
|
Loading…
Reference in a new issue