mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 19:59:49 +00:00
Sorry reverted. GreatLord says this is fixed in the wrong place.
svn path=/trunk/; revision=22227
This commit is contained in:
parent
6d676e6e95
commit
7c2e312093
|
@ -220,11 +220,8 @@ int SetEnv(const wchar_t *option)
|
||||||
char *mboption;
|
char *mboption;
|
||||||
int remove, index, count, size, result = 0, found = 0;
|
int remove, index, count, size, result = 0, found = 0;
|
||||||
|
|
||||||
if (option == NULL ||
|
if (option == NULL || (epos = wcschr(option, L'=')) == NULL)
|
||||||
((epos = wcschr(option, L'=')) == NULL) ||
|
|
||||||
(epos == option))
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
remove = (epos[1] == 0);
|
remove = (epos[1] == 0);
|
||||||
|
|
||||||
/* Duplicate environment if needed. */
|
/* Duplicate environment if needed. */
|
||||||
|
|
Loading…
Reference in a new issue