[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

View File

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