diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 89801f89a..fc123fbe7 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -746,7 +746,7 @@ pub fn get_current_process_session_id() -> Option { pub fn is_physical_console_session() -> Option { if let Some(sid) = get_current_process_session_id() { - let physical_console_session_id = unsafe { get_current_session(TRUE) }; + let physical_console_session_id = unsafe { get_current_session(FALSE) }; if physical_console_session_id == u32::MAX { return None; }