VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-20 05:10:18 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-22 10:00:20 (GMT)
commit32ba1ebcff5b595184fcce86a1e6b7b192190a82 (patch)
tree7ddef2d59bf66809208f62177911602cbd70ae2c /src/Mount
parent138d22a254d55724efa9587ce3d53fbed491d04f (diff)
downloadVeraCrypt-32ba1ebcff5b595184fcce86a1e6b7b192190a82.zip
VeraCrypt-32ba1ebcff5b595184fcce86a1e6b7b192190a82.tar.gz
Windows: Correctly detect switch user and RDP disconnect as session locking so that autodismount could be performed when it's enabled in the preferences
Diffstat (limited to 'src/Mount')
-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 36204fc..a5849de 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;