* Fixed the searching for the file extension in CreateProcessW.

svn path=/trunk/; revision=3709
This commit is contained in:
Hartmut Birr 2002-11-05 20:54:10 +00:00
parent 811a27af00
commit cb7fd6d214

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.56 2002/10/25 22:59:55 chorns Exp $ /* $Id: create.c,v 1.57 2002/11/05 20:54:10 hbirr 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
@ -167,6 +167,8 @@ CreateProcessA (LPCSTR lpApplicationName,
return Result; return Result;
} }
struct _CONTEXT;
struct __EXCEPTION_RECORD;
static static
EXCEPTION_DISPOSITION EXCEPTION_DISPOSITION
@ -200,7 +202,7 @@ BaseProcessStart(LPTHREAD_START_ROUTINE lpStartAddress,
__try1(_except_handler) __try1(_except_handler)
{ {
uExitCode = (lpStartAddress)(lpParameter); uExitCode = (lpStartAddress)((PVOID)lpParameter);
} __except1 } __except1
{ {
} }
@ -658,7 +660,7 @@ CreateProcessW(LPCWSTR lpApplicationName,
{ {
s = TempApplicationNameW; s = TempApplicationNameW;
} }
s = wcsrchr(TempApplicationNameW, L'.'); s = wcsrchr(s, L'.');
if (s == NULL) if (s == NULL)
wcscat(TempApplicationNameW, L".exe"); wcscat(TempApplicationNameW, L".exe");
} }