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

Unified Diff: base/win/windows_version.cc

Issue 10701125: Bring back VERSION_SERVER_2003 to distinguish Server 2003 and XP Pro x64 from regular XP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « base/win/windows_version.h ('k') | chrome/browser/ui/webui/flash_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/windows_version.cc
diff --git a/base/win/windows_version.cc b/base/win/windows_version.cc
index a434bde81cdb5d053f95fe09c5b92a107ab4decf..f0c94e2905aa74ac6d6f17cb187701dc1df817fa 100644
--- a/base/win/windows_version.cc
+++ b/base/win/windows_version.cc
@@ -37,8 +37,8 @@ OSInfo::OSInfo()
version_number_.minor = version_info.dwMinorVersion;
version_number_.build = version_info.dwBuildNumber;
if ((version_number_.major == 5) && (version_number_.minor > 0)) {
- // Treat XP Pro x64, Server 2003, Home Server, and Server 2003 R2 as XP.
- version_ = VERSION_XP;
+ // Treat XP Pro x64, Home Server, and Server 2003 R2 as Server 2003.
+ version_ = (version_number_.minor == 1) ? VERSION_XP : VERSION_SERVER_2003;
} else if (version_number_.major == 6) {
switch (version_number_.minor) {
case 0:
« no previous file with comments | « base/win/windows_version.h ('k') | chrome/browser/ui/webui/flash_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698