mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:03:00 +00:00
FIXME for CreateProcess(): use CurDir to search for the executable file in the new working directory in GetFileName()
svn path=/trunk/; revision=7481
This commit is contained in:
parent
db725ea7e2
commit
7cf14adb77
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: create.c,v 1.78 2004/01/05 13:49:18 weiden Exp $
|
/* $Id: create.c,v 1.79 2004/01/06 13:47:01 mf 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
|
||||||
|
@ -680,9 +680,11 @@ static NTSTATUS KlInitPeb
|
||||||
* Helper for CreateProcessW: retrieve the file name to load from the
|
* Helper for CreateProcessW: retrieve the file name to load from the
|
||||||
* app name and command line. Store the file name in buffer, and
|
* app name and command line. Store the file name in buffer, and
|
||||||
* return a possibly modified command line.
|
* return a possibly modified command line.
|
||||||
|
*
|
||||||
|
* FIXME: use CurDir to search for the executable file in the new working directory
|
||||||
*/
|
*/
|
||||||
static LPWSTR FASTCALL
|
static LPWSTR FASTCALL
|
||||||
GetFileName(LPCWSTR AppName, LPWSTR CmdLine, LPWSTR Buffer,
|
GetFileName(LPCWSTR CurDir, LPCWSTR AppName, LPWSTR CmdLine, LPWSTR Buffer,
|
||||||
unsigned BufLen)
|
unsigned BufLen)
|
||||||
{
|
{
|
||||||
WCHAR *Name, *Pos, *Ret = NULL;
|
WCHAR *Name, *Pos, *Ret = NULL;
|
||||||
|
@ -830,7 +832,7 @@ CreateProcessW
|
||||||
DPRINT("CreateProcessW(lpApplicationName '%S', lpCommandLine '%S')\n",
|
DPRINT("CreateProcessW(lpApplicationName '%S', lpCommandLine '%S')\n",
|
||||||
lpApplicationName, lpCommandLine);
|
lpApplicationName, lpCommandLine);
|
||||||
|
|
||||||
TidyCmdLine = GetFileName(lpApplicationName, lpCommandLine, Name,
|
TidyCmdLine = GetFileName(lpCurrentDirectory, lpApplicationName, lpCommandLine, Name,
|
||||||
sizeof(Name) / sizeof(WCHAR));
|
sizeof(Name) / sizeof(WCHAR));
|
||||||
if (NULL == TidyCmdLine)
|
if (NULL == TidyCmdLine)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue