mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 20:13:33 +01:00
Windows: use Secure Desktop for smart card PIN dialog if it is activated for password dialog.
This commit is contained in:
parent
3021745f67
commit
7f2981f257
@ -11652,7 +11652,7 @@ BOOL InitSecurityTokenLibrary (HWND hwndDlg)
|
|||||||
HWND hParent = IsWindow (m_hwnd)? m_hwnd : GetActiveWindow();
|
HWND hParent = IsWindow (m_hwnd)? m_hwnd : GetActiveWindow();
|
||||||
if (!hParent)
|
if (!hParent)
|
||||||
hParent = GetForegroundWindow ();
|
hParent = GetForegroundWindow ();
|
||||||
if (DialogBoxParamW (hInst, MAKEINTRESOURCEW (IDD_TOKEN_PASSWORD), hParent, (DLGPROC) SecurityTokenPasswordDlgProc, (LPARAM) &str) == IDCANCEL)
|
if (SecureDesktopDialogBoxParam (hInst, MAKEINTRESOURCEW (IDD_TOKEN_PASSWORD), hParent, (DLGPROC) SecurityTokenPasswordDlgProc, (LPARAM) &str) == IDCANCEL)
|
||||||
throw UserAbort (SRC_POS);
|
throw UserAbort (SRC_POS);
|
||||||
}
|
}
|
||||||
if (hCursor != NULL)
|
if (hCursor != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user