Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: base/win/windows_version.cc

Issue 6713107: Make the windows_version.h functions threadsafe by using a singleton. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« base/sys_info_win.cc ('K') | « base/win/windows_version.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/windows_version.cc
===================================================================
--- base/win/windows_version.cc (revision 79219)
+++ base/win/windows_version.cc (working copy)
@@ -34,7 +34,7 @@
} else if (version_info.dwMajorVersion == 6) {
if (version_info.wProductType != VER_NT_WORKSTATION) {
// 2008 is 6.0, and 2008 R2 is 6.1.
- win_version = VERSION_2008;
+ win_version = VERSION_SERVER_2008;
} else {
if (version_info.dwMinorVersion == 0) {
win_version = VERSION_VISTA;
@@ -69,7 +69,7 @@
}
WindowsArchitecture GetWindowsArchitecture() {
- SYSTEM_INFO system_info;
+ SYSTEM_INFO system_info = {0};
GetNativeSystemInfo(&system_info);
switch (system_info.wProcessorArchitecture) {
case PROCESSOR_ARCHITECTURE_INTEL: return X86_ARCHITECTURE;
« base/sys_info_win.cc ('K') | « base/win/windows_version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698