* handle special case

svn path=/trunk/; revision=23559
This commit is contained in:
Johannes Anderwald 2006-08-12 17:29:38 +00:00
parent 219faa9936
commit 2d88d68e4d

View file

@ -673,7 +673,7 @@ CreateProcessInternalW(HANDLE hToken,
* 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",
lpApplicationName, lpCommandLine, lpEnvironment, lpCurrentDirectory,
dwCreationFlags);
@ -1249,6 +1249,10 @@ GetAppName:
/* remove application name */
NullBuffer = wcschr(lpCommandLine, L' ');
}
else if (!_wcsnicmp(lpApplicationName, lpCommandLine, wcslen(lpApplicationName)))
{
NullBuffer = lpCommandLine + wcslen(lpApplicationName) + 1;
}
else
{
NullBuffer = (WCHAR*)lpCommandLine;