use vcredist_x64.exe for 64 bit Windows [#35973]

This commit is contained in:
Francis Dupont 2014-05-13 12:36:44 +02:00
parent 168ec78c63
commit 03262bb77f
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
3844. [bug] Use the x64 version of the Microsoft Visual C++
Redistributable when built for 64 bit Windows.
(Thanks to Giovanni Paterno.) [RT #35973]
3843. [protocol] Check EDNS EXPIRE option in dns_rdata_fromwire.
[RT #35969]

View file

@ -555,8 +555,13 @@ void CBINDInstallDlg::OnInstall() {
* Enclose full path to Vcredist_x86.exe in quotes as
* m_currentDir may contain spaces.
*/
#ifndef _WIN64
sprintf(Vcredist_x86, "\"%s\\Vcredist_x86.exe\"",
(LPCTSTR) m_currentDir);
#else
sprintf(Vcredist_x86, "\"%s\\Vcredist_x64.exe\"",
(LPCTSTR) m_currentDir);
#endif
system(Vcredist_x86);
#endif
try {