From 32ba1ebcff5b595184fcce86a1e6b7b192190a82 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 20 May 2015 07:10:18 +0200 Subject: Windows: Correctly detect switch user and RDP disconnect as session locking so that autodismount could be performed when it's enabled in the preferences --- src/Mount/Mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mount/Mount.c') diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 36204fc9..a5849de8 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -5761,7 +5761,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa case WM_WTSSESSION_CHANGE: if (TaskBarIconMutex != NULL) { - if (bDismountOnSessionLocked && (WTS_SESSION_LOCK == wParam)) + if (bDismountOnSessionLocked && ((WTS_SESSION_LOCK == wParam) || (WTS_CONSOLE_DISCONNECT == wParam) || (WTS_REMOTE_DISCONNECT == wParam))) { // Auto-dismount when session is locked DWORD dwResult; -- cgit v1.2.3