summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorshuax <[email protected]>2022-03-30 10:18:43 +0800
committershuax <[email protected]>2022-03-30 10:18:43 +0800
commit3cf7e82a53fd7b92cf30b41ad7058602a7af6bf2 (patch)
treedb3fdc2ecc0128dbd3c3ffa64fd5dd7a9a04acd7 /core/src
parent011d92dfdba49493509ae256ee1244f283960b90 (diff)
fix bug
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 640736ec2..6afd4b69c 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(value, valuename_w, valuesize + 1);
+ value_n = tb_wtoa(value, value_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(value, valuename_w, valuesize + 1);
+ value_n = tb_wtoa(value, value_w, valuesize + 1);
if (value_n == (tb_size_t)-1)
{
lua_pushnil(lua);