cmd: Fix 'SET =' invocation.

It should produce an error, not print the whole environment.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2024-10-04 09:13:27 +02:00 committed by Alexandre Julliard
parent 46659281bf
commit cc1baab8bb
Notes: Alexandre Julliard 2024-10-04 22:11:51 +02:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6615
2 changed files with 2 additions and 2 deletions

View file

@ -3017,7 +3017,7 @@ RETURN_CODE WCMD_setshow_env(WCHAR *s)
BOOL status;
WCHAR string[MAXSTRING];
if (param1[0] == 0x00 && quals[0] == 0x00) {
if (!*s) {
WCHAR *env = GetEnvironmentStringsW();
WCMD_setshow_sortenv( env, NULL );
FreeEnvironmentStringsW(env);

View file

@ -712,7 +712,7 @@ prompt XbarX
prompt YfooY
'prompt' YfooY
promptYfooY
@todo_wine@------------ Testing 'choice' ------------
------------ Testing 'choice' ------------
Example message [A,B,C]?A@or_broken@choice unavailable
1@or_broken@9009
Example message [A,B,C]?B@or_broken@choice unavailable