mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:46:17 +00:00
Fixed forwarding of current directory string
svn path=/trunk/; revision=1450
This commit is contained in:
parent
a7d8f1c9ab
commit
e69d5f4655
1 changed files with 9 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.30 2000/08/11 12:32:37 ekohl Exp $
|
||||
/* $Id: create.c,v 1.31 2000/12/05 18:08:24 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -112,7 +112,7 @@ CreateProcessA (
|
|||
bInheritHandles,
|
||||
dwCreationFlags,
|
||||
lpEnvironment,
|
||||
CurrentDirectoryU.Buffer,
|
||||
(lpCurrentDirectory == NULL) ? NULL : CurrentDirectoryU.Buffer,
|
||||
(LPSTARTUPINFOW)lpStartupInfo,
|
||||
lpProcessInformation);
|
||||
|
||||
|
@ -396,6 +396,7 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
|||
PWCHAR e;
|
||||
ULONG i;
|
||||
ANSI_STRING ProcedureName;
|
||||
UNICODE_STRING CurrentDirectoryW;
|
||||
|
||||
DPRINT("CreateProcessW(lpApplicationName '%S', lpCommandLine '%S')\n",
|
||||
lpApplicationName,lpCommandLine);
|
||||
|
@ -441,6 +442,10 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
|||
wcscat(TempCommandLine, lpCommandLine);
|
||||
}
|
||||
|
||||
/* Initialize the current directory string */
|
||||
RtlInitUnicodeString(&CurrentDirectoryW,
|
||||
lpCurrentDirectory);
|
||||
|
||||
/*
|
||||
* Create the PPB
|
||||
*/
|
||||
|
@ -452,7 +457,7 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
|||
RtlCreateProcessParameters(&Ppb,
|
||||
&CommandLine_U,
|
||||
NULL,
|
||||
NULL,
|
||||
(lpCurrentDirectory == NULL) ? NULL : &CurrentDirectoryW,
|
||||
NULL,
|
||||
lpEnvironment,
|
||||
NULL,
|
||||
|
@ -473,7 +478,7 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
|||
|
||||
/*
|
||||
* Create a new process
|
||||
*/
|
||||
*/
|
||||
Status = NtCreateProcess(&hProcess,
|
||||
PROCESS_ALL_ACCESS,
|
||||
NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue