]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use vcredist_x64.exe for 64 bit Windows [#35973]
authorFrancis Dupont <fdupont@isc.org>
Tue, 13 May 2014 10:31:50 +0000 (12:31 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 13 May 2014 10:31:50 +0000 (12:31 +0200)
CHANGES
bin/win32/BINDInstall/BINDInstallDlg.cpp

diff --git a/CHANGES b/CHANGES
index a85cfe1788aba84e0b4e9dc6d4790556ebef9c21..e1da5219be4045a0b40260ff3d1d2b0a22cfc24c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+3843.  [bug]           Use the x64 version of the Microsoft Visual C++
+                       Redistributable when built for 64 bit Windows.
+                       (Thanks to Giovanni Paterno.) [RT #35973]
+
 3842.  [bug]           Adjust RRL log-only logging category. [RT #35945]
 
 3841.  [cleanup]       Refactor zone.c:add_opt to use dns_message_buildopt.
index 72beddb048584b9482b9051d39d94526da600000..d51c225c4a6102ba3bb99ac5464d2765cf7ab37d 100644 (file)
@@ -563,8 +563,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 {