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

Unified Diff: remoting/host/win/launch_process_with_token.cc

Issue 11411279: Correctly detect Windows XP Pro x64 and Windows 2003 as not supporting elevation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/launch_process_with_token.cc
diff --git a/remoting/host/win/launch_process_with_token.cc b/remoting/host/win/launch_process_with_token.cc
index 3619a55454ffff9f4e6656e25490ad00b06ae93c..549d8c39080ddc924034e738eecb27af188e99ee 100644
--- a/remoting/host/win/launch_process_with_token.cc
+++ b/remoting/host/win/launch_process_with_token.cc
@@ -380,7 +380,7 @@ bool CreateRemoteSessionProcess(
DWORD creation_flags,
PROCESS_INFORMATION* process_information_out)
{
- DCHECK(base::win::GetVersion() == base::win::VERSION_XP);
+ DCHECK_LT(base::win::GetVersion(), base::win::VERSION_VISTA);
base::win::ScopedHandle pipe;
if (!ConnectToExecutionServer(session_id, &pipe))
@@ -592,7 +592,7 @@ bool LaunchProcessWithToken(const FilePath& binary,
// of |user_token|. Since Winlogon runs as SYSTEM, this suits our needs.
if (!result &&
GetLastError() == ERROR_PIPE_NOT_CONNECTED &&
- base::win::GetVersion() == base::win::VERSION_XP) {
+ base::win::GetVersion() < base::win::VERSION_VISTA) {
DWORD session_id;
DWORD return_length;
result = GetTokenInformation(user_token,
« no previous file with comments | « no previous file | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698