summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/xmake/winos/registry_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/winos/registry_query.c b/core/src/xmake/winos/registry_query.c
index 7c9e87689..c0803c6a7 100644
--- a/core/src/xmake/winos/registry_query.c
+++ b/core/src/xmake/winos/registry_query.c
@@ -159,7 +159,7 @@ tb_int_t xm_winos_registry_query(lua_State* lua)
// make value buffer
value = (tb_char_t*)tb_malloc0(valuesize + 1);
tb_assert_and_check_break(value);
- value_w = (tb_wchar_t*)tb_malloc0(sizeof() * (valuesize + 1));
+ value_w = (tb_wchar_t*)tb_malloc0(sizeof(tb_wchar_t) * (valuesize + 1));
tb_assert_and_check_break(value_w);
// get value result