Windows: check "TrueCrypt Mode" in password dialog when mounting a file container with .tc extension

This commit is contained in:
Mounir IDRASSI committed 2019-12-13 00:08:17 +01:00
1 parent 2a93826497
commit 1fd097c666
3 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -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);