diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-05 01:38:22 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-05 01:41:48 +0200 |
commit | eb72fe7aa9aa4be3de58c8dd04b15a42c7634448 (patch) | |
tree | f518986e982290c43e3a3bc7f5c5662b10f1766a /src/Mount/Mount.c | |
parent | 0ef137c0a4005eca6de49e754cab136e052a6496 (diff) | |
download | VeraCrypt-eb72fe7aa9aa4be3de58c8dd04b15a42c7634448.tar.gz VeraCrypt-eb72fe7aa9aa4be3de58c8dd04b15a42c7634448.zip |
Windows: move language XML files to new "Languages" folder in the installation directory.
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r-- | src/Mount/Mount.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index eca25c8f..50f6e8f0 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -4359,8 +4359,14 @@ BOOL CALLBACK TravelerDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa if (strcmp (GetPreferredLangId (), "en") != 0) { // Language pack - StringCbPrintfW (srcPath, sizeof(srcPath), L"%s\\Language.%hs.xml", appDir, GetPreferredLangId ()); - StringCbPrintfW (dstPath, sizeof(dstPath), L"%s\\VeraCrypt\\Language.%hs.xml", dstDir, GetPreferredLangId ()); + StringCbPrintfW (dstPath, sizeof(dstPath), L"%s\\VeraCrypt\\Languages", dstDir); + if (!CreateDirectoryW (dstPath, NULL)) + { + handleWin32Error (hwndDlg, SRC_POS); + goto stop; + } + StringCbPrintfW (srcPath, sizeof(srcPath), L"%s\\Languages\\Language.%hs.xml", appDir, GetPreferredLangId ()); + StringCbPrintfW (dstPath, sizeof(dstPath), L"%s\\VeraCrypt\\Languages\\Language.%hs.xml", dstDir, GetPreferredLangId ()); TCCopyFile (srcPath, dstPath); } |