diff options
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/BootEncryption.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp index b57f5c28..e64347d7 100644 --- a/src/Common/BootEncryption.cpp +++ b/src/Common/BootEncryption.cpp @@ -2707,7 +2707,14 @@ namespace VeraCrypt wchar_t szSetupconfigLocation [TC_MAX_PATH + 20]; if (bForInstall) + { GetInstallationPath (NULL, szInstallPath, ARRAYSIZE (szInstallPath), NULL); + // remove ending backslash + if (szInstallPath [wcslen (szInstallPath) - 1] == L'\\') + { + szInstallPath [wcslen (szInstallPath) - 1] = 0; + } + } if (GetSetupconfigLocation (szSetupconfigLocation, ARRAYSIZE (szSetupconfigLocation))) { ::CreateDirectoryW (szSetupconfigLocation, NULL); |