From 8808c78f8ef5bf169b08e3c104cd3c3e9fb5d710 Mon Sep 17 00:00:00 2001 From: Changhua Date: Mon, 10 Feb 2025 20:42:53 +0800 Subject: [PATCH] refactor(util:dbg_msg): switch to OutputDebugStringW for better Unicode support --- WeChatFerry/com/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeChatFerry/com/util.cpp b/WeChatFerry/com/util.cpp index 2c45632..ed3473b 100644 --- a/WeChatFerry/com/util.cpp +++ b/WeChatFerry/com/util.cpp @@ -251,7 +251,7 @@ void dbg_msg(const char *format, ...) vsnprintf(buffer.data(), buffer.size(), format, args); va_end(args); - OutputDebugStringA(buffer.data()); + OutputDebugStringW(s2w(buffer.data()).c_str()); } std::unique_ptr new_wx_string(const char *str)