summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/xmake/winos/registry_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/winos/registry_query.c b/core/src/xmake/winos/registry_query.c
index 1dfcf8dc7..640736ec2 100644
--- a/core/src/xmake/winos/registry_query.c
+++ b/core/src/xmake/winos/registry_query.c
@@ -138,7 +138,7 @@ tb_int_t xm_winos_registry_query(lua_State* lua)
break;
}
- value_n = tb_wtoa(valuename_w, value, valuesize + 1);
+ value_n = tb_wtoa(value, valuename_w, valuesize + 1);
if (value_n == (tb_size_t)-1)
{
lua_pushnil(lua);
@@ -180,7 +180,7 @@ tb_int_t xm_winos_registry_query(lua_State* lua)
break;
}
- value_n = tb_wtoa(valuename_w, value, valuesize + 1);
+ value_n = tb_wtoa(value, valuename_w, valuesize + 1);
if (value_n == (tb_size_t)-1)
{
lua_pushnil(lua);