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
This commit is contained in:
Magnus Olsen 2005-08-25 22:43:20 +00:00
parent 5509951fc0
commit 06694b3675

View 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('\"');
}