VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-12-13 00:07:25 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-12-13 00:08:17 +0100
commit1fd097c666be570fedf612ed7caa7e809881e072 (patch)
treedd654ffdb96fba0fab3703d823cab07b2336b6c8 /src/Mount
parent2a93826497f10540034a430add272c1d71a25eba (diff)
downloadVeraCrypt-1fd097c666be570fedf612ed7caa7e809881e072.tar.gz
VeraCrypt-1fd097c666be570fedf612ed7caa7e809881e072.zip
Windows: check "TrueCrypt Mode" in password dialog when mounting a file container with .tc extension
Diffstat (limited to 'src/Mount')
-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 9130eaee..ac25ba58 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -5061,7 +5061,7 @@ static BOOL Mount (HWND hwndDlg, int nDosDriveNo, wchar_t *szFileName, int pim,
else if (!Silent)
{
int GuiPkcs5 = EffectiveVolumePkcs5;
- BOOL GuiTrueCryptMode = EffectiveVolumeTrueCryptMode;
+ BOOL GuiTrueCryptMode = EffectiveVolumeTrueCryptMode || IsTrueCryptFileExtension (szFileName)? TRUE : FALSE;
int GuiPim = EffectiveVolumePim;
StringCbCopyW (PasswordDlgVolume, sizeof(PasswordDlgVolume), szFileName);