Revision: 7711 https://osdn.net/projects/ttssh2/scm/svn/commits/7711 Author: zmatsuo Date: 2019-05-22 22:33:18 +0900 (Wed, 22 May 2019) Log Message: ----------- 文字列リテラルの参照にconst追加 Modified Paths: -------------- trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2019-05-22 13:33:07 UTC (rev 7710) +++ trunk/teraterm/teraterm/vtwin.cpp 2019-05-22 13:33:18 UTC (rev 7711) @@ -3997,7 +3997,7 @@ void CVTWindow::OnDuplicateSession() { char Command[1024]; - char *exec = "ttermpro"; + const char *exec = "ttermpro"; STARTUPINFO si; PROCESS_INFORMATION pi; char cygterm_cfg[MAX_PATH]; @@ -4100,7 +4100,7 @@ char file[MAX_PATH], *filename; char c, *envptr, *envbuff=NULL; int envbufflen; - char *exename = "cygterm.exe"; + const char *exename = "cygterm.exe"; char cygterm[MAX_PATH]; STARTUPINFO si; PROCESS_INFORMATION pi; @@ -4187,7 +4187,7 @@ // void CVTWindow::OnTTMenuLaunch() { - char *exename = "ttpmenu.exe"; + const char *exename = "ttpmenu.exe"; STARTUPINFO si; PROCESS_INFORMATION pi; @@ -4195,7 +4195,7 @@ GetStartupInfo(&si); memset(&pi, 0, sizeof(pi)); - if (CreateProcess(NULL, exename, NULL, NULL, FALSE, 0, + if (CreateProcess(exename, NULL, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi) == 0) { char buf[80]; char uimsg[MAX_UIMSG]; @@ -4347,7 +4347,7 @@ OPENFILENAME ofn; char szFile[MAX_PATH]; char Command[MAX_PATH] = "notepad.exe"; - char *exec = "ttermpro"; + const char *exec = "ttermpro"; STARTUPINFO si; PROCESS_INFORMATION pi; char uimsg[MAX_UIMSG];