From 7cf14adb77bfc58f2aeb8e6fdcad78b3fa706c88 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 6 Jan 2004 13:47:01 +0000 Subject: [PATCH] FIXME for CreateProcess(): use CurDir to search for the executable file in the new working directory in GetFileName() svn path=/trunk/; revision=7481 --- reactos/lib/kernel32/process/create.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/lib/kernel32/process/create.c b/reactos/lib/kernel32/process/create.c index 441130759f1..8cf572e8526 100644 --- a/reactos/lib/kernel32/process/create.c +++ b/reactos/lib/kernel32/process/create.c @@ -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) {