[CMD] Fix the output of the SET command.

This commit is contained in:
Hermès Bélusca-Maïto
2020-08-19 20:36:04 +02:00
parent ca4523658c
commit e3ed502bb6
+4 -1
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);
}