VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c2
1 files changed, 1 insertions, 1 deletions
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;