mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 03:23:51 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -112,7 +112,7 @@ CreateProcessA (
|
||||||
bInheritHandles,
|
bInheritHandles,
|
||||||
dwCreationFlags,
|
dwCreationFlags,
|
||||||
lpEnvironment,
|
lpEnvironment,
|
||||||
CurrentDirectoryU.Buffer,
|
(lpCurrentDirectory == NULL) ? NULL : CurrentDirectoryU.Buffer,
|
||||||
(LPSTARTUPINFOW)lpStartupInfo,
|
(LPSTARTUPINFOW)lpStartupInfo,
|
||||||
lpProcessInformation);
|
lpProcessInformation);
|
||||||
|
|
||||||
|
@ -396,6 +396,7 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
||||||
PWCHAR e;
|
PWCHAR e;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
ANSI_STRING ProcedureName;
|
ANSI_STRING ProcedureName;
|
||||||
|
UNICODE_STRING CurrentDirectoryW;
|
||||||
|
|
||||||
DPRINT("CreateProcessW(lpApplicationName '%S', lpCommandLine '%S')\n",
|
DPRINT("CreateProcessW(lpApplicationName '%S', lpCommandLine '%S')\n",
|
||||||
lpApplicationName,lpCommandLine);
|
lpApplicationName,lpCommandLine);
|
||||||
|
@ -441,6 +442,10 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
||||||
wcscat(TempCommandLine, lpCommandLine);
|
wcscat(TempCommandLine, lpCommandLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Initialize the current directory string */
|
||||||
|
RtlInitUnicodeString(&CurrentDirectoryW,
|
||||||
|
lpCurrentDirectory);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create the PPB
|
* Create the PPB
|
||||||
*/
|
*/
|
||||||
|
@ -452,7 +457,7 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
||||||
RtlCreateProcessParameters(&Ppb,
|
RtlCreateProcessParameters(&Ppb,
|
||||||
&CommandLine_U,
|
&CommandLine_U,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
(lpCurrentDirectory == NULL) ? NULL : &CurrentDirectoryW,
|
||||||
NULL,
|
NULL,
|
||||||
lpEnvironment,
|
lpEnvironment,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue