mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
Fix one wine test. Don't accept an option string that starts with =.
svn path=/trunk/; revision=22226
This commit is contained in:
parent
de5ef123ee
commit
6d676e6e95
1 changed files with 5 additions and 2 deletions
|
@ -220,8 +220,11 @@ int SetEnv(const wchar_t *option)
|
|||
char *mboption;
|
||||
int remove, index, count, size, result = 0, found = 0;
|
||||
|
||||
if (option == NULL || (epos = wcschr(option, L'=')) == NULL)
|
||||
return -1;
|
||||
if (option == NULL ||
|
||||
((epos = wcschr(option, L'=')) == NULL) ||
|
||||
(epos == option))
|
||||
return -1;
|
||||
|
||||
remove = (epos[1] == 0);
|
||||
|
||||
/* Duplicate environment if needed. */
|
||||
|
|
Loading…
Reference in a new issue