From 5c92baff3c5de4b583f701ca2ec58c0e43a76211 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 6 Jun 2004 09:03:07 +0000 Subject: [PATCH] - 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 --- reactos/subsys/system/cmd/set.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/set.c b/reactos/subsys/system/cmd/set.c index 6883145cf86..005e6ac6df7 100644 --- a/reactos/subsys/system/cmd/set.c +++ b/reactos/subsys/system/cmd/set.c @@ -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