mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +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
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -680,9 +680,11 @@ static NTSTATUS KlInitPeb
|
|||
* Helper for CreateProcessW: retrieve the file name to load from the
|
||||
* app name and command line. Store the file name in buffer, and
|
||||
* return a possibly modified command line.
|
||||
*
|
||||
* FIXME: use CurDir to search for the executable file in the new working directory
|
||||
*/
|
||||
static LPWSTR FASTCALL
|
||||
GetFileName(LPCWSTR AppName, LPWSTR CmdLine, LPWSTR Buffer,
|
||||
GetFileName(LPCWSTR CurDir, LPCWSTR AppName, LPWSTR CmdLine, LPWSTR Buffer,
|
||||
unsigned BufLen)
|
||||
{
|
||||
WCHAR *Name, *Pos, *Ret = NULL;
|
||||
|
@ -830,7 +832,7 @@ CreateProcessW
|
|||
DPRINT("CreateProcessW(lpApplicationName '%S', lpCommandLine '%S')\n",
|
||||
lpApplicationName, lpCommandLine);
|
||||
|
||||
TidyCmdLine = GetFileName(lpApplicationName, lpCommandLine, Name,
|
||||
TidyCmdLine = GetFileName(lpCurrentDirectory, lpApplicationName, lpCommandLine, Name,
|
||||
sizeof(Name) / sizeof(WCHAR));
|
||||
if (NULL == TidyCmdLine)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue