summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorshuax <[email protected]>2022-03-30 09:37:41 +0800
committershuax <[email protected]>2022-03-30 09:37:41 +0800
commit011d92dfdba49493509ae256ee1244f283960b90 (patch)
tree5934e899ab30d7dd7c0103f46f0bad530a3f67be /core/src
parent5bd3faabff08f68d8a341518d2a39ea304478f6a (diff)
fix
Diffstat (limited to 'core/src')
-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);