VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-10 23:36:20 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-11 17:31:39 (GMT)
commit134ef041406c78283db0b82760d41248266d481d (patch)
treef0d367f3c6a4d1450c70102b4fda2fb125099afa /src/Mount
parentc8c8cc517dae089c1241890133837339a716f225 (diff)
downloadVeraCrypt-134ef041406c78283db0b82760d41248266d481d.zip
VeraCrypt-134ef041406c78283db0b82760d41248266d481d.tar.gz
Windows: always display random gathering dialog when UserEnrichRandomPool is called instead of once per application run. This is implemented through the call SetRandomPoolEnrichedByUserStatus(FALSE) at the begining of sensitive operations instead of changing UserEnrichRandomPool because in the same call there can be many calls to UserEnrichRandomPool which can result in displaying the dialog many times.
Diffstat (limited to 'src/Mount')
-rw-r--r--src/Mount/Mount.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index d157660..0f58c66 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -7652,6 +7652,9 @@ noHidden:
goto error;
}
+ /* force the display of the random enriching dialog */
+ SetRandomPoolEnrichedByUserStatus (FALSE);
+
NormalCursor();
UserEnrichRandomPool (hwndDlg);
WaitCursor();
@@ -7807,6 +7810,9 @@ int RestoreVolumeHeader (HWND hwndDlg, const char *lpszVolume)
OpenVolumeContext volume;
volume.VolumeIsOpen = FALSE;
+ /* force the display of the random enriching dialog */
+ SetRandomPoolEnrichedByUserStatus (FALSE);
+
WaitCursor();
if (restoreInternalBackup)