From ad3b8eca694ed4d7a0ff17f955736725aad0cea6 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 24 Aug 2015 01:31:30 +0200 Subject: Windows: Protect against using a container file as its own keyfile. Normalizing path names to never use '/' but always '\'. --- src/Format/Tcformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Format') diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 1ceff6a5..1469904b 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -7112,7 +7112,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa { WaitCursor (); - if (!KeyFilesApply (hwndDlg, &volumePassword, FirstKeyFile)) + if (!KeyFilesApply (hwndDlg, &volumePassword, FirstKeyFile, NULL)) { NormalCursor (); return 1; @@ -7217,7 +7217,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa if (KeyFilesEnable) { - KeyFilesApply (hwndDlg, &volumePassword, FirstKeyFile); + KeyFilesApply (hwndDlg, &volumePassword, FirstKeyFile, NULL); } if (!bInPlaceEncNonSys) -- cgit v1.2.3