diff --git a/reaction/code/sys/sys_win32.c b/reaction/code/sys/sys_win32.c index 0d213409..362d33a1 100644 --- a/reaction/code/sys/sys_win32.c +++ b/reaction/code/sys/sys_win32.c @@ -772,7 +772,10 @@ set/unset environment variables (empty value removes it) */ void Sys_SetEnv(const char *name, const char *value) { + if(value) _putenv(va("%s=%s", name, value)); + else + _putenv(va("%s=", name)); } /*