diff options
author | gwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 17:02:31 +0000 |
---|---|---|
committer | gwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 17:02:31 +0000 |
commit | f6cd3eba4717e800095f79c6c3568716e64b7816 (patch) | |
tree | 183a576335caa58e1d3dc39684d3b58fbfb91089 /chrome/installer | |
parent | 87aaf9044c4392672ffe7b77be195e8c8f762ff3 (diff) | |
download | chromium_src-f6cd3eba4717e800095f79c6c3568716e64b7816.zip chromium_src-f6cd3eba4717e800095f79c6c3568716e64b7816.tar.gz chromium_src-f6cd3eba4717e800095f79c6c3568716e64b7816.tar.bz2 |
Modifies the criteria checker to require XP SP2 as the minimum OS version; we only support XP SP2 and higher.
Review URL: http://codereview.chromium.org/63025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13359 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r-- | chrome/installer/gcapi/gcapi.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/installer/gcapi/gcapi.cc b/chrome/installer/gcapi/gcapi.cc index 75bae0c..0ba5d4c 100644 --- a/chrome/installer/gcapi/gcapi.cc +++ b/chrome/installer/gcapi/gcapi.cc @@ -162,7 +162,7 @@ bool IsChromeInstalled(HKEY root_key) { return false; } -bool IsWinXPSp1OrLater(bool* is_vista_or_later) { +bool IsWinXPSp2OrLater(bool* is_vista_or_later) { OSVERSIONINFOEX osviex = { sizeof(OSVERSIONINFOEX) }; int r = ::GetVersionEx((LPOSVERSIONINFO)&osviex); // If this failed we're on Win9X or a pre NT4SP6 OS. @@ -177,8 +177,8 @@ bool IsWinXPSp1OrLater(bool* is_vista_or_later) { return true; // way beyond Windows XP; } - if (osviex.dwMinorVersion >= 1 && osviex.wServicePackMajor >= 1) - return true; // Windows XP SP1 or better. + if (osviex.dwMinorVersion >= 1 && osviex.wServicePackMajor >= 2) + return true; // Windows XP SP2 or better. return false; // Windows 2000, WinXP no Service Pack. } @@ -231,7 +231,7 @@ bool VerifyHKLMAccess(const wchar_t* sub_key) { bool IsRunningElevated() { // This method should be called only for Vista or later. bool is_vista_or_later = false; - IsWinXPSp1OrLater(&is_vista_or_later); + IsWinXPSp2OrLater(&is_vista_or_later); if (!is_vista_or_later || !VerifyAdminGroup()) return false; @@ -289,7 +289,7 @@ DLLEXPORT BOOL __stdcall GoogleChromeCompatibilityCheck(BOOL set_flag, bool is_vista_or_later = false; // System requirements? - if (!IsWinXPSp1OrLater(&is_vista_or_later)) + if (!IsWinXPSp2OrLater(&is_vista_or_later)) local_reasons |= GCCC_ERROR_OSNOTSUPPORTED; if (IsChromeInstalled(HKEY_LOCAL_MACHINE)) |