Windows: during install, copy the 64-bit driver if we are running on 64-bit windows

This commit is contained in:
Mounir IDRASSI 2018-04-16 09:49:30 +02:00
parent f5cb9d1f2e
commit 3f3a567782
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -742,7 +742,7 @@ BOOL DoFilesInstall (HWND hwndDlg, wchar_t *szDestDir)
curFileName [wcslen (szFiles[i]) - 1] = 0;
if (Is64BitOs ()
&& wcscmp (szFiles[i], L"Dveracrypt.sys") == 0)
&& ((wcscmp (szFiles[i], L"Dveracrypt.sys") == 0) || (wcscmp (szFiles[i], L"Averacrypt.sys") == 0)))
{
StringCbCopyNW (curFileName, sizeof(curFileName), FILENAME_64BIT_DRIVER, sizeof (FILENAME_64BIT_DRIVER));
}