[openrtm-commit:03283] r3258 - branches/RELENG_1_2/OpenRTM-aist/src/lib/coil/win32/coil

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 3月 27日 (火) 14:20:02 JST


Author: t-katami
Date: 2018-03-27 14:20:02 +0900 (Tue, 27 Mar 2018)
New Revision: 3258

Modified:
   branches/RELENG_1_2/OpenRTM-aist/src/lib/coil/win32/coil/Process.cpp
Log:
[compat,bugfix] Fixed the processing which starts command using CreateProcess in the form as cmd.exe /c . refs #4489

Modified: branches/RELENG_1_2/OpenRTM-aist/src/lib/coil/win32/coil/Process.cpp
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist/src/lib/coil/win32/coil/Process.cpp	2018-03-26 09:58:53 UTC (rev 3257)
+++ branches/RELENG_1_2/OpenRTM-aist/src/lib/coil/win32/coil/Process.cpp	2018-03-27 05:20:02 UTC (rev 3258)
@@ -31,6 +31,8 @@
    */
   int launch_shell(std::string command)
   {
+    std::string cmd = "cmd.exe /c ";
+    command = cmd + command;
 #ifdef UNICODE
 	// std::string -> LPTSTR
     std::wstring wcommand = string2wstring(command);



openrtm-commit メーリングリストの案内