1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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

This commit is contained in:
Mounir IDRASSI
2019-12-13 00:07:25 +01:00
parent 2a93826497
commit 1fd097c666
3 changed files with 11 additions and 1 deletions

View File

@@ -7392,6 +7392,15 @@ BOOL CheckFileExtension (wchar_t *fileName)
return FALSE;
}
BOOL IsTrueCryptFileExtension (wchar_t *fileName)
{
wchar_t *ext = wcsrchr (fileName, L'.');
if (ext && !_wcsicmp (ext, L".tc"))
return TRUE;
else
return FALSE;
}
void CorrectFileName (wchar_t* fileName)
{
/* replace '/' by '\' */