mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
- Fixed the set command for WinXP.
- The second parameter must be zero in the call to SetEnvironmentVariable if the variable should be deleted. svn path=/trunk/; revision=9634
This commit is contained in:
parent
fbd64e0eb9
commit
5c92baff3c
1 changed files with 4 additions and 1 deletions
|
@ -94,7 +94,10 @@ INT cmd_set (LPTSTR cmd, LPTSTR param)
|
|||
/* set or remove environment variable */
|
||||
*p = _T('\0');
|
||||
p++;
|
||||
|
||||
if (*p == _T('\0'))
|
||||
{
|
||||
p = NULL;
|
||||
}
|
||||
SetEnvironmentVariable (param, p);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue