diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-12-13 00:07:25 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-12-13 00:08:17 +0100 |
commit | 1fd097c666be570fedf612ed7caa7e809881e072 (patch) | |
tree | dd654ffdb96fba0fab3703d823cab07b2336b6c8 /src/Common/Dlgcode.c | |
parent | 2a93826497f10540034a430add272c1d71a25eba (diff) | |
download | VeraCrypt-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/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 5e2dc39a..350e3f46 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -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 '\' */ |