VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-14 22:47:11 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-15 12:44:34 (GMT)
commitc2b69b248c004e097ffc1aa4c0dde0ddd0ba54f7 (patch)
tree4ee8316df5e409493c3db3a81f3f2117551330e3 /src/Mount/Mount.c
parent6cdcbac305bb34b90d0864879ce940463fae9730 (diff)
downloadVeraCrypt-c2b69b248c004e097ffc1aa4c0dde0ddd0ba54f7.zip
VeraCrypt-c2b69b248c004e097ffc1aa4c0dde0ddd0ba54f7.tar.gz
Windows: Add various checks and replace STL code after Coverity report
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index da1d74f..1d80e03 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -4634,7 +4634,11 @@ BOOL CALLBACK TravelerDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
}
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);
+ if (!TCCopyFile (srcPath, dstPath))
+ {
+ handleWin32Error (hwndDlg, SRC_POS);
+ goto stop;
+ }
}
// AutoRun