commit 568334d3269c36f3437c4ae879c0b390dacbb0e0
parent 97fd1a6db308607b092cad1594182d1732a76696
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Tue, 3 Jan 2017 22:09:14 -0800
inst: use SetEnvironmentVariableA
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/inst_frontend.cc b/inst_frontend.cc
@@ -138,8 +138,8 @@ InstFrontend::clean_PATH()
}
#ifdef _WIN32
- if (SetEnvironmentVariable("Path", new_path.str().c_str()) == 0)
- Err(1);
+ if (SetEnvironmentVariableA("Path", new_path.str().c_str()) == 0)
+ Err(1, "SetEnvironmentVariableA");
#else // _WIN32
if (setenv("PATH", new_path.str().c_str(), 1))
err(1, "setenv");