36 char *
ptr, *environment_strings;
41 TRACE(
"BlockEnvToEnvironA()\n");
44 if (environment_strings ==
NULL) {
67 for (envptr--; envptr >=
_environ; envptr--)
88 wchar_t *
ptr, *environment_strings;
93 TRACE(
"BlockEnvToEnvironW()\n");
96 if (environment_strings ==
NULL) {
119 for (envptr--; envptr >=
_wenviron; envptr--)
154 char **envptr, **newenvptr, **newenv;
156 for (envptr = original_environment; *envptr !=
NULL; envptr++,
count++)
159 newenvptr = newenv =
malloc(
count *
sizeof(
char*));
161 return original_environment;
163 for (envptr = original_environment;
count > 1; newenvptr++,
count--)
166 *newenvptr = (
char*)
_wcsdup((
wchar_t*)*envptr++);
168 *newenvptr =
_strdup(*envptr++);
169 if (*newenvptr ==
NULL)
171 for (newenvptr--; newenvptr >= newenv; newenvptr--)
174 return original_environment;
193 for (envptr = environment; *envptr !=
NULL; envptr++)
212 wchar_t *epos, *
name;
265 *wenvptr = *(wenvptr + 1);
276 if (mbnewenv !=
NULL)
294 if (mboption ==
NULL)
ACPI_SIZE strlen(const char *String)
#define WideCharToMultiByte
BOOL WINAPI FreeEnvironmentStringsA(IN LPSTR EnvironmentStrings)
BOOL WINAPI FreeEnvironmentStringsW(IN LPWSTR EnvironmentStrings)
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableW(IN LPCWSTR lpName, IN LPCWSTR lpValue)
GLuint GLuint GLsizei count
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
#define MSVCRT_CHECK_PMT(x)
_CRTIMP int *__cdecl _errno(void)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
wchar_t *** __p___winitenv(void)
unsigned int * __p__winminor(void)
char ** DuplicateEnvironment(char **original_environment, int wide)
int BlockEnvToEnvironA(void)
void FreeEnvironment(char **environment)
char ** __p__pgmptr(void)
wchar_t ** __p__wpgmptr(void)
char ** __p__acmdln(void)
unsigned int * __p__winmajor(void)
int _get_wpgmptr(WCHAR **p)
unsigned int __unguarded_readlc_active
unsigned int * __p__winver(void)
int * __p___mb_cur_max(void)
int BlockEnvToEnvironW(void)
int CDECL ___mb_cur_max_func(void)
char *** __p__environ(void)
void __set_app_type(int app_type)
char *** __p___initenv(void)
wchar_t *** __p__wenviron(void)
int _get_pgmptr(char **p)
unsigned int * __p__osver(void)
int SetEnv(const wchar_t *option)
unsigned int __setlc_active
wchar_t ** __p__wcmdln(void)
errno_t _get_osplatform(unsigned int *pValue)
LPWSTR WINAPI GetEnvironmentStringsW(void)
#define GetEnvironmentStringsA