mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-27 21:43:29 +01:00
Windows: Correctly detect switch user and RDP disconnect as session locking so that autodismount could be performed when it's enabled in the preferences
This commit is contained in:
parent
138d22a254
commit
32ba1ebcff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user