Display number of processors in System Info dialog.

Oops: on Windows, ask the system about the values before displaying it instead
of expecting the structure to fill itself.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28107 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2010-09-18 20:50:11 +00:00
parent 752ce1e6e7
commit f75d912d7c

View file

@ -169,6 +169,7 @@ QString System::osVersionString(void)
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
GetSystemInfo(&sysinfo);
result = QString("Windows version %1.%2, ").arg(osvi.dwMajorVersion).arg(osvi.dwMinorVersion);
if(osvi.szCSDVersion)