Thx ravelo to found a new bug in start.c it did not manger run batfile with path...
authorMagnus Olsen <magnus@greatlord.com>
Thu, 25 Aug 2005 22:43:20 +0000 (22:43 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Thu, 25 Aug 2005 22:43:20 +0000 (22:43 +0000)
svn path=/trunk/; revision=17549

reactos/subsys/system/cmd/start.c

index cbb4969..eb16879 100644 (file)
@@ -131,10 +131,13 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
                    return 1;
            }
 
-               memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T("\" /K "), 5 * sizeof(TCHAR));                         
+               memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T("\" /K \""), 6 * sizeof(TCHAR));                               
                memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)], szFullName, _tcslen(szFullName) * sizeof(TCHAR));                
                memcpy(&szFullCmdLine[1], &szFullCmdLine[0], _tcslen(szFullCmdLine) * sizeof(TCHAR)); 
         szFullCmdLine[0] = _T('\"');                                   
+        szFullCmdLine[_tcslen(szFullCmdLine)] = _T('\"');
+               
+
 
        }