Index: sandbox/win/src/sandbox_policy_base.cc |
diff --git a/sandbox/win/src/sandbox_policy_base.cc b/sandbox/win/src/sandbox_policy_base.cc |
index ad60dfa0e3b6f60db0d641c03311d10edf2feea2..d3c920e6429c0e7119a34d423747ec921113603e 100644 |
--- a/sandbox/win/src/sandbox_policy_base.cc |
+++ b/sandbox/win/src/sandbox_policy_base.cc |
@@ -459,7 +459,7 @@ ResultCode PolicyBase::MakeTokens(HANDLE* initial, HANDLE* lockdown) { |
// integrity label on the object is no higher than the sandboxed process's |
// integrity level. So, we lower the label on the desktop process if it's |
// not already low enough for our process. |
- if (use_alternate_desktop_ && |
+ if (alternate_desktop_handle_ && use_alternate_desktop_ && |
integrity_level_ != INTEGRITY_LEVEL_LAST && |
alternate_desktop_integrity_level_label_ < integrity_level_ && |
base::win::OSInfo::GetInstance()->version() >= base::win::VERSION_VISTA) { |