[CMD] Fix the output of the SET command.

This commit is contained in:
Hermès Bélusca-Maïto 2020-06-09 00:35:18 +02:00
parent ca4523658c
commit e3ed502bb6
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -92,11 +92,14 @@ INT cmd_set(LPTSTR param)
lpOutput = lpEnv;
while (*lpOutput)
{
/* Do not display the special '=X:' environment variables */
if (*lpOutput != _T('='))
{
ConOutPuts(lpOutput);
lpOutput += _tcslen(lpOutput) + 1;
ConOutChar(_T('\n'));
}
lpOutput += _tcslen(lpOutput) + 1;
}
FreeEnvironmentStrings(lpEnv);
}