From 2cc262c0932a193b261e6e6a172855bd8f898c6d Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 31 Oct 2007 01:34:19 +0000 Subject: [PATCH] 2257. [bug] win32: Use the full path to vcredist_x86.exe when calling it. [RT #17222] --- CHANGES | 3 +++ bin/win32/BINDInstall/BINDInstallDlg.cpp | 14 ++++++++++++-- lib/isc/win32/libisc.def | 7 +++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 1a9635d981..29e579ae06 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2257. [bug] win32: Use the full path to vcredist_x86.exe when + calling it. [RT #17222] + 2256. [bug] win32: Correctly register the installation location of bindevt.dll. [RT #17159] diff --git a/bin/win32/BINDInstall/BINDInstallDlg.cpp b/bin/win32/BINDInstall/BINDInstallDlg.cpp index 23483bf373..88d5b72257 100644 --- a/bin/win32/BINDInstall/BINDInstallDlg.cpp +++ b/bin/win32/BINDInstall/BINDInstallDlg.cpp @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: BINDInstallDlg.cpp,v 1.36 2007/10/31 00:05:36 marka Exp $ */ +/* $Id: BINDInstallDlg.cpp,v 1.37 2007/10/31 01:34:19 marka Exp $ */ /* * Copyright (c) 1999-2000 by Nortel Networks Corporation @@ -387,6 +387,9 @@ void CBINDInstallDlg::OnUninstall() { * User pressed the install button. Make it go. */ void CBINDInstallDlg::OnInstall() { +#if _MSC_VER >= 1400 + char Vcredist_x86[MAX_PATH]; +#endif BOOL success = FALSE; int oldlen; @@ -481,7 +484,14 @@ void CBINDInstallDlg::OnInstall() { * Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log" */ /*system(".\\Vcredist_x86.exe /q:a /c:\"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log\"");*/ - system(".\\Vcredist_x86.exe"); + + /* + * Enclose full path to Vcredist_x86.exe in quotes as + * m_currentDir may contain spaces. + */ + sprintf(Vcredist_x86, "\"%s\\Vcredist_x86.exe\"", + (LPCTSTR) m_currentDir); + system(Vcredist_x86); #endif try { CreateDirs(); diff --git a/lib/isc/win32/libisc.def b/lib/isc/win32/libisc.def index 29b1dfb34f..9b642cf49c 100644 --- a/lib/isc/win32/libisc.def +++ b/lib/isc/win32/libisc.def @@ -126,6 +126,13 @@ isc_hash_ctxdetach isc_hash_ctxinit isc_hash_destroy isc_hash_init +isc_heap_create +isc_heap_decreased +isc_heap_delete +isc_heap_destroy +isc_heap_element +isc_heap_increased +isc_heap_insert isc_hex_decodestring isc_hex_tobuffer isc_hex_totext