mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Windows: Protect against using a container file as its own keyfile. Normalizing path names to never use '/' but always '\'.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user