diff options
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Dlgcode.c | 9 | ||||
-rw-r--r-- | src/Common/Dlgcode.h | 1 |
2 files changed, 10 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 '\' */ diff --git a/src/Common/Dlgcode.h b/src/Common/Dlgcode.h index 5da717fe..f387bf71 100644 --- a/src/Common/Dlgcode.h +++ b/src/Common/Dlgcode.h @@ -351,6 +351,7 @@ BOOL CloseVolumeExplorerWindows (HWND hwnd, int driveNo); BOOL UpdateDriveCustomLabel (int driveNo, wchar_t* effectiveLabel, BOOL bSetValue); BOOL CheckCapsLock (HWND hwnd, BOOL quiet); BOOL CheckFileExtension (wchar_t *fileName); +BOOL IsTrueCryptFileExtension (wchar_t *fileName); void CorrectFileName (wchar_t* fileName); void CorrectURL (wchar_t* fileName); void IncreaseWrongPwdRetryCount (int count); |