mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 19:38:26 -06: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:
@@ -5761,7 +5761,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||||||
case WM_WTSSESSION_CHANGE:
|
case WM_WTSSESSION_CHANGE:
|
||||||
if (TaskBarIconMutex != NULL)
|
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
|
// Auto-dismount when session is locked
|
||||||
DWORD dwResult;
|
DWORD dwResult;
|
||||||
|
|||||||
Reference in New Issue
Block a user