mirror of
https://github.com/reactos/reactos.git
synced 2024-10-10 19:27:40 +00:00
* handle special case
svn path=/trunk/; revision=23559
This commit is contained in:
parent
219faa9936
commit
2d88d68e4d
|
@ -673,7 +673,7 @@ CreateProcessInternalW(HANDLE hToken,
|
||||||
* key (see http://blogs.msdn.com/oldnewthing/archive/2005/12/19/505449.aspx)
|
* key (see http://blogs.msdn.com/oldnewthing/archive/2005/12/19/505449.aspx)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DPRINT1("CreateProcessW: lpApplicationName: %S lpCommandLine: %S"
|
DPRINT("CreateProcessW: lpApplicationName: %S lpCommandLine: %S"
|
||||||
" lpEnvironment: %p lpCurrentDirectory: %S dwCreationFlags: %lx\n",
|
" lpEnvironment: %p lpCurrentDirectory: %S dwCreationFlags: %lx\n",
|
||||||
lpApplicationName, lpCommandLine, lpEnvironment, lpCurrentDirectory,
|
lpApplicationName, lpCommandLine, lpEnvironment, lpCurrentDirectory,
|
||||||
dwCreationFlags);
|
dwCreationFlags);
|
||||||
|
@ -1249,6 +1249,10 @@ GetAppName:
|
||||||
/* remove application name */
|
/* remove application name */
|
||||||
NullBuffer = wcschr(lpCommandLine, L' ');
|
NullBuffer = wcschr(lpCommandLine, L' ');
|
||||||
}
|
}
|
||||||
|
else if (!_wcsnicmp(lpApplicationName, lpCommandLine, wcslen(lpApplicationName)))
|
||||||
|
{
|
||||||
|
NullBuffer = lpCommandLine + wcslen(lpApplicationName) + 1;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NullBuffer = (WCHAR*)lpCommandLine;
|
NullBuffer = (WCHAR*)lpCommandLine;
|
||||||
|
|
Loading…
Reference in a new issue