mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
fix is_physical_console_session (#7266)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
1 parent
1bc11a207a
commit
2920e33d71
1 file changed
+1
-1
@@ -746,7 +746,7 @@ pub fn get_current_process_session_id() -> Option<u32> {
|
||||
|
||||
pub fn is_physical_console_session() -> Option<bool> {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user