summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-06 11:11:15 +0300
committerSaikari <[email protected]>2026-02-06 11:11:15 +0300
commitd49ea464353c5e63c95c77cc97d1827dd3df53ad (patch)
treee7e62c2c19ec8678a08c2854c2c8e421ec44f857 /core/src
parentda9078511fa52c95cf7e5aad21deb55b27e64488 (diff)
Resolve comments
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/process/openv.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c
index b9020cb2c..223d2d774 100644
--- a/core/src/xmake/process/openv.c
+++ b/core/src/xmake/process/openv.c
@@ -34,9 +34,6 @@
defined(TB_CONFIG_OS_HAIKU) || defined(TB_COMPILER_IS_MINGW)
#include <signal.h>
#endif
-#ifdef TB_CONFIG_OS_WINDOWS
-#include <windows.h>
-#endif
/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
@@ -103,12 +100,6 @@ tb_int_t xm_process_openv(lua_State *lua) {
// init attributes
tb_process_attr_t attr = { 0 };
-#ifdef TB_CONFIG_OS_WINDOWS
- // the error mode
- UINT old_error_mode = 0;
- tb_bool_t set_error_mode = tb_false;
-#endif
-
// get option arguments
tb_bool_t exclusive = tb_false;
tb_size_t envn = 0;
@@ -139,17 +130,6 @@ tb_int_t xm_process_openv(lua_State *lua) {
}
lua_pop(lua, 1);
-#ifdef TB_CONFIG_OS_WINDOWS
- // save winos error mode?
- lua_pushstring(lua, "winos_error_mode_gui");
- lua_gettable(lua, 3);
- if (lua_toboolean(lua, -1)) {
- old_error_mode = SetErrorMode(0);
- set_error_mode = tb_true;
- }
- lua_pop(lua, 1);
-#endif
-
// get curdir
lua_pushstring(lua, "curdir");
lua_gettable(lua, 3);
@@ -343,13 +323,6 @@ tb_int_t xm_process_openv(lua_State *lua) {
lua_pushnil(lua);
}
-#ifdef TB_CONFIG_OS_WINDOWS
- // restore error mode
- if (set_error_mode) {
- SetErrorMode(old_error_mode);
- }
-#endif
-
// exit argv
if (argv) {
tb_free(argv);