VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-12 01:27:50 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-14 23:36:02 (GMT)
commit23b69537a509134c0a303fc795a597c7373c7310 (patch)
tree6783bdd058fd8e6cb178eabff7cb864f4dbe0bb1 /src/Mount
parentee3fa19ed90e55d257d8b73fdf9cbcb14accd35a (diff)
downloadVeraCrypt-23b69537a509134c0a303fc795a597c7373c7310.zip
VeraCrypt-23b69537a509134c0a303fc795a597c7373c7310.tar.gz
Windows: Set bPrebootPasswordDlgMode to FALSE at the correct code location.
Diffstat (limited to 'src/Mount')
-rw-r--r--src/Mount/Mount.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index e45b7d0..9ee5815 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -4600,7 +4600,7 @@ void __cdecl mountThreadFunction (void *hwndDlgArg)
HWND hwndDlg =(HWND) hwndDlgArg;
// Disable parent dialog during processing to avoid user interaction
EnableWindow(hwndDlg, FALSE);
- finally_do_arg (HWND, hwndDlg, { EnableWindow(finally_arg, TRUE); });
+ finally_do_arg (HWND, hwndDlg, { EnableWindow(finally_arg, TRUE); bPrebootPasswordDlgMode = FALSE;});
Mount (hwndDlg, 0, 0, -1);
}
@@ -7243,9 +7243,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
bPrebootPasswordDlgMode = TRUE;
if (CheckMountList (hwndDlg, FALSE))
- _beginthread(mountThreadFunction, 0, hwndDlg);
-
- bPrebootPasswordDlgMode = FALSE;
+ _beginthread(mountThreadFunction, 0, hwndDlg);
}
break;
}