From 6a7cf32789d0a5957d65661533f62779598800e8 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 7 Jan 2025 22:07:22 -0500 Subject: [PATCH] Fixed small windows bug. --- src/lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpm.c b/src/lpm.c index 7aad006..e2d3682 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -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))