summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 20:04:24 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 20:04:24 +0000
commit3ae7075693f9e267187b5272aace5858f679c94a (patch)
tree3af6af6e1fe68b7a877d282ae92fd26578393bd4 /remoting
parent18e7ee66c41d9319b635c3a12669c960f5a28bec (diff)
downloadchromium_src-3ae7075693f9e267187b5272aace5858f679c94a.zip
chromium_src-3ae7075693f9e267187b5272aace5858f679c94a.tar.gz
chromium_src-3ae7075693f9e267187b5272aace5858f679c94a.tar.bz2
Do not allow "curtained" connections on Windows XP/2003...
... because Remote Desktop ActiveX control deadlocks the GUI subsystem if it is running in a session that is being attached or detached. This does not happen on Vista+ due to the session 0 isolation. BUG=235065 Review URL: https://chromiumcodereview.appspot.com/15899012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203206 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/curtain_mode_win.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/host/curtain_mode_win.cc b/remoting/host/curtain_mode_win.cc
index 79e2d6e..d94d615 100644
--- a/remoting/host/curtain_mode_win.cc
+++ b/remoting/host/curtain_mode_win.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
+#include "base/win/windows_version.h"
#include "remoting/host/client_session_control.h"
namespace remoting {
@@ -25,6 +26,11 @@ CurtainModeWin::CurtainModeWin() {
}
bool CurtainModeWin::Activate() {
+ if (base::win::GetVersion() < base::win::VERSION_VISTA) {
+ LOG(ERROR) << "Curtain mode is not supported on Windows XP/2003";
+ return false;
+ }
+
DWORD session_id;
if (!ProcessIdToSessionId(GetCurrentProcessId(), &session_id)) {
LOG_GETLASTERROR(ERROR) << "Failed to map the current PID to session ID";