mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-07-06 04:58:01 -05:00
Windows: Add various checks to address Coverity reported issues.
This commit is contained in:
+2
-1
@@ -819,7 +819,8 @@ BOOL DoFilesInstall (HWND hwndDlg, wchar_t *szDestDir)
|
||||
if (Is64BitOs ())
|
||||
driver64 = TRUE;
|
||||
|
||||
GetSystemDirectory (szDir, ARRAYSIZE (szDir));
|
||||
if (!GetSystemDirectory (szDir, ARRAYSIZE (szDir)))
|
||||
StringCbCopyW(szDir, sizeof(szDir), L"C:\\Windows\\System32");
|
||||
|
||||
x = wcslen (szDir);
|
||||
if (szDir[x - 1] != L'\\')
|
||||
|
||||
Reference in New Issue
Block a user