Allow ProgramUniprocess to be set on Windows

This commit is contained in:
Paul Kulchenko 2022-03-20 10:57:24 -07:00
parent 0cb6b6ff4b
commit 8838366b9a

View file

@ -5153,9 +5153,7 @@ static int LuaProgramUniprocess(lua_State *L) {
return luaL_argerror(L, 1, "invalid uniprocess mode; boolean expected");
lua_pushboolean(L, uniprocess);
if (!IsWindows()) { // uniprocess can't be disabled on Windows yet
if (lua_isboolean(L, 1)) uniprocess = lua_toboolean(L, 1);
}
if (lua_isboolean(L, 1)) uniprocess = lua_toboolean(L, 1);
return 1;
}