Commit ebd18109 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

cmd: Space does not delimit environment variable names.

parent f9b4c78a
......@@ -2361,6 +2361,8 @@ void WCMD_setshow_env (WCHAR *s) {
*p++ = '\0';
if (strlenW(p) == 0) p = NULL;
WINE_TRACE("set: Setting var '%s' to '%s'\n", wine_dbgstr_w(s),
wine_dbgstr_w(p));
status = SetEnvironmentVariableW(s, p);
gle = GetLastError();
if ((!status) & (gle == ERROR_ENVVAR_NOT_FOUND)) {
......
......@@ -203,10 +203,10 @@ baz@space@
1
0
FOOBAR not defined
@todo_wine@ baz
baz
FOOBAR = baz
0
@todo_wine@ baz2
baz2
0
bar
@todo_wine@FOOBAR= bar
......
......@@ -557,7 +557,7 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start,
static const WCHAR Time[] = {'T','I','M','E','\0'};
static const WCHAR Cd[] = {'C','D','\0'};
static const WCHAR Random[] = {'R','A','N','D','O','M','\0'};
static const WCHAR Delims[] = {'%',' ',':','\0'};
static const WCHAR Delims[] = {'%',':','\0'};
WINE_TRACE("Expanding: %s (%s,%s)\n", wine_dbgstr_w(start),
wine_dbgstr_w(forVal), wine_dbgstr_w(forVar));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment