diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-20 07:10:18 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-22 12:00:20 +0200 |
commit | 32ba1ebcff5b595184fcce86a1e6b7b192190a82 (patch) | |
tree | 7ddef2d59bf66809208f62177911602cbd70ae2c | |
parent | 138d22a254d55724efa9587ce3d53fbed491d04f (diff) | |
download | VeraCrypt-32ba1ebcff5b595184fcce86a1e6b7b192190a82.tar.gz VeraCrypt-32ba1ebcff5b595184fcce86a1e6b7b192190a82.zip |
Windows: Correctly detect switch user and RDP disconnect as session locking so that autodismount could be performed when it's enabled in the preferences
-rw-r--r-- | src/Mount/Mount.c | 2 |
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;
|