ReactOS
0.4.15-dev-1632-g4e289ce
|
#include <precomp.h>
Go to the source code of this file.
Functions | |
int | SetEnv (const wchar_t *option) |
int | _putenv (const char *val) |
Internal version of _wputenv and _putenv. It works duplicates the original envirnments created during initilization if needed to prevent having spurious pointers floating around. Then it updates the internal environment tables (_environ and _wenviron) and at last updates the OS environemnt.
Note that there can happen situation when the internal [_w]environ arrays will be updated, but the OS environment update will fail. In this case we don't undo the changes to the [_w]environ tables to comply with the Microsoft behaviour (and it's also much easier :-).
Definition at line 210 of file environ.c.
Referenced by _putenv().