mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -454,7 +454,7 @@ CreateProcessW(LPCWSTR lpApplicationName,
|
|||
* Create the PPB
|
||||
*/
|
||||
|
||||
RtlInitUnicodeString(&CommandLine_U, TempCommandLine);
|
||||
RtlInitUnicodeString(&CommandLine_U, lpCommandLine);
|
||||
|
||||
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
|
||||
* DESCRIPTION: ReactOS' Native Shell
|
||||
|
@ -155,8 +155,10 @@ int ExecuteProcess(char* name, char* cmdline, BOOL detached)
|
|||
memset(&StartupInfo, 0, sizeof(StartupInfo));
|
||||
StartupInfo.cb = sizeof (STARTUPINFO);
|
||||
StartupInfo.lpTitle = name;
|
||||
if( cmdline && *cmdline )
|
||||
*(cmdline-1) = ' '; // fix command line so it is the FULL command, including exe name
|
||||
ret = CreateProcessA(fullname,
|
||||
cmdline,
|
||||
name,
|
||||
NULL,
|
||||
NULL,
|
||||
FALSE,
|
||||
|
|
Loading…
Reference in a new issue