- 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:
Hartmut Birr 2004-06-06 09:03:07 +00:00
parent fbd64e0eb9
commit 5c92baff3c

View file

@ -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