diff options
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) | |||
7392 | return FALSE; | 7392 | return FALSE; |
7393 | } | 7393 | } |
7394 | 7394 | ||
7395 | BOOL IsTrueCryptFileExtension (wchar_t *fileName) | ||
7396 | { | ||
7397 | wchar_t *ext = wcsrchr (fileName, L'.'); | ||
7398 | if (ext && !_wcsicmp (ext, L".tc")) | ||
7399 | return TRUE; | ||
7400 | else | ||
7401 | return FALSE; | ||
7402 | } | ||
7403 | |||
7395 | void CorrectFileName (wchar_t* fileName) | 7404 | void CorrectFileName (wchar_t* fileName) |
7396 | { | 7405 | { |
7397 | /* replace '/' by '\' */ | 7406 | /* replace '/' by '\' */ |