From 06694b3675085a938dd2ae4cbcddd2fadf87251a Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Thu, 25 Aug 2005 22:43:20 +0000 Subject: [PATCH] Thx ravelo to found a new bug in start.c it did not manger run batfile with path that contain space. svn path=/trunk/; revision=17549 --- reactos/subsys/system/cmd/start.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/start.c b/reactos/subsys/system/cmd/start.c index cbb49695b49..eb16879e5b5 100644 --- a/reactos/subsys/system/cmd/start.c +++ b/reactos/subsys/system/cmd/start.c @@ -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('\"'); + + }