修正:win助手配置使用host_name作为窗口标题时,如果host_name含有中文则会显示为乱码。

feature/assist-websocket
Apex Liu 2022-05-27 21:44:34 +08:00
parent d92cf2f469
commit fef0e95846
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ void TsWsClient::_rpc_func_run_client(ex_astr& buf, AssistMessage& msg_req, Json
ex_wstr w_real_host_ip;
ex_astr2wstr(real_host_ip, w_real_host_ip);
ex_wstr w_remote_host_name;
ex_astr2wstr(remote_host_name, w_remote_host_name);
ex_astr2wstr(remote_host_name, w_remote_host_name, EX_CODEPAGE_UTF8);
WCHAR w_port[32] = { 0 };
swprintf_s(w_port, _T("%d"), teleport_port);