diff options
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Common.rc | 3 | ||||
-rw-r--r-- | src/Common/Dlgcode.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Common/Common.rc b/src/Common/Common.rc index 4f4dfb32..fcb7aaab 100644 --- a/src/Common/Common.rc +++ b/src/Common/Common.rc @@ -310,7 +310,8 @@ BEGIN END
IDD_STATIC_MODAL_WAIT_DLG DIALOGEX 0, 0, 292, 61
-STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION
+STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION
+EXSTYLE WS_EX_TOPMOST
CAPTION "VeraCrypt"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index f7d86cfb..844cda9b 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -6369,9 +6369,9 @@ retry: threadParam.pmount = &mount;
threadParam.pbResult = &bResult;
threadParam.pdwResult = &dwResult;
-
+
DialogBoxParamW (hInst,
- MAKEINTRESOURCEW (IDD_STATIC_MODAL_WAIT_DLG), hwndDlg,
+ MAKEINTRESOURCEW (IDD_STATIC_MODAL_WAIT_DLG), GetDesktopWindow(),
(DLGPROC) MountWaitDlgProc, (LPARAM) &threadParam);
}
else
|