mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 09:01:13 +00:00
Fixed CreateProcess() to use the command line parameter like NT does
This still needs quite a bit more work to fix bugs and be 100% compatible with NT svn path=/trunk/; revision=1983
This commit is contained in:
parent
045f617089
commit
a49c07b8f2
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: create.c,v 1.38 2001/03/17 11:11:10 dwelch Exp $
|
/* $Id: create.c,v 1.39 2001/06/18 03:02:43 phreak Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -454,7 +454,7 @@ CreateProcessW(LPCWSTR lpApplicationName,
|
||||||
* Create the PPB
|
* Create the PPB
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RtlInitUnicodeString(&CommandLine_U, TempCommandLine);
|
RtlInitUnicodeString(&CommandLine_U, lpCommandLine);
|
||||||
|
|
||||||
DPRINT("CommandLine_U %S\n", CommandLine_U.Buffer);
|
DPRINT("CommandLine_U %S\n", CommandLine_U.Buffer);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: shell.c,v 1.5 2001/05/01 23:08:17 chorns Exp $
|
/* $Id: shell.c,v 1.6 2001/06/18 03:02:43 phreak Exp $
|
||||||
*
|
*
|
||||||
* PROJECT : ReactOS Operating System
|
* PROJECT : ReactOS Operating System
|
||||||
* DESCRIPTION: ReactOS' Native Shell
|
* DESCRIPTION: ReactOS' Native Shell
|
||||||
|
@ -155,8 +155,10 @@ int ExecuteProcess(char* name, char* cmdline, BOOL detached)
|
||||||
memset(&StartupInfo, 0, sizeof(StartupInfo));
|
memset(&StartupInfo, 0, sizeof(StartupInfo));
|
||||||
StartupInfo.cb = sizeof (STARTUPINFO);
|
StartupInfo.cb = sizeof (STARTUPINFO);
|
||||||
StartupInfo.lpTitle = name;
|
StartupInfo.lpTitle = name;
|
||||||
|
if( cmdline && *cmdline )
|
||||||
|
*(cmdline-1) = ' '; // fix command line so it is the FULL command, including exe name
|
||||||
ret = CreateProcessA(fullname,
|
ret = CreateProcessA(fullname,
|
||||||
cmdline,
|
name,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
FALSE,
|
FALSE,
|
||||||
|
|
Loading…
Reference in a new issue