mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
Check for CREATE_UNICODE_ENVIRONMENT in CreateProcessA.
svn path=/trunk/; revision=3495
This commit is contained in:
parent
0542fdd563
commit
61e3f21f42
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.52 2002/09/08 10:22:45 chorns Exp $
|
||||
/* $Id: create.c,v 1.53 2002/09/13 18:55:31 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -74,7 +74,7 @@ CreateProcessA (LPCSTR lpApplicationName,
|
|||
"lpStartupInfo %x, lpProcessInformation %x\n", dwCreationFlags,
|
||||
lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
|
||||
|
||||
if (lpEnvironment)
|
||||
if (lpEnvironment && !(dwCreationFlags & CREATE_UNICODE_ENVIRONMENT))
|
||||
{
|
||||
PCHAR ptr = lpEnvironment;
|
||||
ULONG len = 0;
|
||||
|
@ -149,7 +149,7 @@ CreateProcessA (LPCSTR lpApplicationName,
|
|||
lpThreadAttributes,
|
||||
bInheritHandles,
|
||||
dwCreationFlags,
|
||||
lpEnvironmentW,
|
||||
dwCreationFlags & CREATE_UNICODE_ENVIRONMENT ? lpEnvironment : lpEnvironmentW,
|
||||
(lpCurrentDirectory == NULL) ? NULL : CurrentDirectoryU.Buffer,
|
||||
(LPSTARTUPINFOW)lpStartupInfo,
|
||||
lpProcessInformation);
|
||||
|
|
Loading…
Reference in a new issue