Windows: use Secure Desktop for smart card PIN dialog if it is activated for password dialog.

This commit is contained in:
Mounir IDRASSI 2017-07-20 01:08:53 +02:00
parent 3021745f67
commit 7f2981f257
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -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)