Skip to content

Commit

Permalink
Fixed small windows bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Jan 8, 2025
1 parent 19cd35c commit 6a7cf32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ static int lpm_time(lua_State* L) {

static int lpm_setenv(lua_State* L) {
#ifdef _WIN32
if (!SetEnvironmentVariableW(lua_toutf16(L, luaL_checkstring(L, 1)), lua_toutf16(luaL_checkstring(L, 2))))
if (!SetEnvironmentVariableW(lua_toutf16(L, luaL_checkstring(L, 1)), lua_toutf16(L, luaL_checkstring(L, 2))))
return luaL_win32_error(L, GetLastError(), "unable to set system environment variable");
#else
if (setenv(luaL_checkstring(L, 1), luaL_checkstring(L, 2), 1))
Expand Down

0 comments on commit 6a7cf32

Please sign in to comment.