mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +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 */
|
/* set or remove environment variable */
|
||||||
*p = _T('\0');
|
*p = _T('\0');
|
||||||
p++;
|
p++;
|
||||||
|
if (*p == _T('\0'))
|
||||||
|
{
|
||||||
|
p = NULL;
|
||||||
|
}
|
||||||
SetEnvironmentVariable (param, p);
|
SetEnvironmentVariable (param, p);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue