diff --git a/bin/win32/BINDInstall/BINDInstallDlg.cpp b/bin/win32/BINDInstall/BINDInstallDlg.cpp index d51c225c4a..c9420ed6cb 100644 --- a/bin/win32/BINDInstall/BINDInstallDlg.cpp +++ b/bin/win32/BINDInstall/BINDInstallDlg.cpp @@ -1,5 +1,5 @@ /* - * Portions Copyright (C) 2004-2010, 2013, 2014 Internet Systems Consortium, Inc. ("ISC") + * Portions Copyright (C) 2004-2010, 2013-2015 Internet Systems Consortium, Inc. ("ISC") * Portions Copyright (C) 2001, 2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -1306,7 +1306,7 @@ void CBINDInstallDlg::ProgramGroup(BOOL create) { { IPersistFile* ppf; sprintf(linkpath, "%s\\BINDCtrl.lnk", path); - sprintf(fileloc, "%s\\BINDCtrl.exe", m_binDir); + sprintf(fileloc, "%s\\BINDCtrl.exe", (LPCTSTR) m_binDir); psl->SetPath(fileloc); psl->SetDescription("BIND Control Panel"); @@ -1321,7 +1321,7 @@ void CBINDInstallDlg::ProgramGroup(BOOL create) { } if (GetFileAttributes("readme.txt") != -1) { - sprintf(fileloc, "%s\\Readme.txt", m_targetDir); + sprintf(fileloc, "%s\\Readme.txt", (LPCTSTR) m_targetDir); sprintf(linkpath, "%s\\Readme.lnk", path); psl->SetPath(fileloc); diff --git a/bin/win32/BINDInstall/VersionInfo.cpp b/bin/win32/BINDInstall/VersionInfo.cpp index e940e9e042..c5dc2dc799 100644 --- a/bin/win32/BINDInstall/VersionInfo.cpp +++ b/bin/win32/BINDInstall/VersionInfo.cpp @@ -277,7 +277,8 @@ CString CVersionInfo::QueryStringValue(CString value) // You probably should change this to match it. DWORD codePage = 0x040904B0; - sprintf(queryString, "\\StringFileInfo\\%08X\\%s", codePage, value); + sprintf(queryString, "\\StringFileInfo\\%08X\\%s", + codePage, (LPCTSTR) value); if(VerQueryValue(m_versionInfo, queryString, &viBlob, &blobLen)) return((char *)viBlob);