summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-09-18 20:50:11 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-09-18 20:50:11 +0000
commitf75d912d7c1354cf5a6de2a8a7e39f8fa5738311 (patch)
tree8a77b2518996b1dbf8ac2f85a7cecb1ec707b27f
parent752ce1e6e77f89814c443628c5ee3761cf782bc9 (diff)
downloadrockbox-f75d912d7c1354cf5a6de2a8a7e39f8fa5738311.tar.gz
rockbox-f75d912d7c1354cf5a6de2a8a7e39f8fa5738311.tar.bz2
rockbox-f75d912d7c1354cf5a6de2a8a7e39f8fa5738311.zip
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
-rw-r--r--rbutil/rbutilqt/base/system.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/system.cpp b/rbutil/rbutilqt/base/system.cpp
index 11b31e8f16..3773e68786 100644
--- a/rbutil/rbutilqt/base/system.cpp
+++ b/rbutil/rbutilqt/base/system.cpp
@@ -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)