mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
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:
parent
5509951fc0
commit
06694b3675
1 changed files with 4 additions and 1 deletions
|
@ -131,10 +131,13 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
|
||||||
return 1;
|
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[_tcslen(szFullCmdLine)], szFullName, _tcslen(szFullName) * sizeof(TCHAR));
|
||||||
memcpy(&szFullCmdLine[1], &szFullCmdLine[0], _tcslen(szFullCmdLine) * sizeof(TCHAR));
|
memcpy(&szFullCmdLine[1], &szFullCmdLine[0], _tcslen(szFullCmdLine) * sizeof(TCHAR));
|
||||||
szFullCmdLine[0] = _T('\"');
|
szFullCmdLine[0] = _T('\"');
|
||||||
|
szFullCmdLine[_tcslen(szFullCmdLine)] = _T('\"');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue