From 13058fd638eaddf4ecdd52e902f3bf7254b5c45c Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 5 Oct 2015 03:44:28 +0200 Subject: [PATCH] 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. --- src/Mount/Mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 9f23d77c..09552c0a 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;