mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
dont allow '=' in the environmental name in the set command
svn path=/trunk/; revision=21975
This commit is contained in:
@@ -119,6 +119,14 @@ INT cmd_set (LPTSTR cmd, LPTSTR param)
|
||||
if (p)
|
||||
{
|
||||
/* set or remove environment variable */
|
||||
if (p == param)
|
||||
{
|
||||
/* handle set =val case */
|
||||
LoadString(CMD_ModuleHandle, STRING_SYNTAX_COMMAND_INCORRECT, szMsg, RC_STRING_MAX_SIZE);
|
||||
ConErrPrintf (szMsg, param);
|
||||
return 0;
|
||||
}
|
||||
|
||||
*p = _T('\0');
|
||||
p++;
|
||||
if (*p == _T('\0'))
|
||||
|
||||
Reference in New Issue
Block a user