VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-05 01:44:28 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-05 02:31:19 (GMT)
commit13058fd638eaddf4ecdd52e902f3bf7254b5c45c (patch)
tree8e8f6e65242341c2fd39f39ecf0654d06007c8a6 /src/Mount/Mount.c
parentc94f8c9b63edc756aa05ec85ed8da84ab799205c (diff)
downloadVeraCrypt-13058fd638eaddf4ecdd52e902f3bf7254b5c45c.zip
VeraCrypt-13058fd638eaddf4ecdd52e902f3bf7254b5c45c.tar.gz
Windows: fix failure to restore volume header from an external file if custom PIM used or PRF different from default one. Also default PRF is correct set in password dialog for restore operation.
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 9f23d77..09552c0 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -9807,7 +9807,7 @@ int RestoreVolumeHeader (HWND hwndDlg, const char *lpszVolume)
{
int GuiPkcs5 = ((EffectiveVolumePkcs5 > 0) && (VolumePkcs5 == 0))? EffectiveVolumePkcs5 : VolumePkcs5;
int GuiPim = ((EffectiveVolumePim > 0) && (VolumePim <= 0))? EffectiveVolumePim : VolumePim;
- if (!AskVolumePassword (hwndDlg, &VolumePassword, &VolumePkcs5, &VolumePim, &VolumeTrueCryptMode, "ENTER_HEADER_BACKUP_PASSWORD", FALSE))
+ if (!AskVolumePassword (hwndDlg, &VolumePassword, &GuiPkcs5, &GuiPim, &VolumeTrueCryptMode, "ENTER_HEADER_BACKUP_PASSWORD", FALSE))
{
nStatus = ERR_SUCCESS;
goto ret;