. assist support mstsc.

pull/173/head
Apex Liu 2019-01-17 02:37:33 +08:00
parent f3419918cf
commit 0971b0dc9f
1 changed files with 3 additions and 3 deletions

View File

@ -782,12 +782,12 @@ void TsHttpRpc::_rpc_func_run_client(const ex_astr& func_args, ex_astr& buf) {
real_sid = "01" + real_sid; real_sid = "01" + real_sid;
char sz_rdp_file_content[4096] = { 0 }; char sz_rdp_file_content[4096] = { 0 };
sprintf_s(sz_rdp_file_content, rdp_content.c_str() sprintf_s(sz_rdp_file_content, 4096, rdp_content.c_str()
, (flag_console && rdp_console) ? 1 : 0 , (flag_console && rdp_console) ? 1 : 0
, display, width, higth , display, width, higth
, cx, cy, cx + width + 100, cy + higth + 100 , cx, cy, cx + width + 100, cy + higth + 100
, flag_clipboard ? 1 : 0
, teleport_ip.c_str(), teleport_port , teleport_ip.c_str(), teleport_port
, flag_clipboard ? 1 : 0
, flag_disk ? "*" : "" , flag_disk ? "*" : ""
, real_sid.c_str() , real_sid.c_str()
, psw51b.c_str() , psw51b.c_str()
@ -805,7 +805,7 @@ void TsHttpRpc::_rpc_func_run_client(const ex_astr& func_args, ex_astr& buf) {
ex_astr temp_host_ip = real_host_ip; ex_astr temp_host_ip = real_host_ip;
ex_replace_all(temp_host_ip, ".", "-"); ex_replace_all(temp_host_ip, ".", "-");
sprintf_s(sz_file_name, ("%s%s.rdp"), temp_path, temp_host_ip.c_str()); sprintf_s(sz_file_name, MAX_PATH, ("%s%s.rdp"), temp_path, temp_host_ip.c_str());
FILE* f = NULL; FILE* f = NULL;
if (fopen_s(&f, sz_file_name, "wt") != 0) { if (fopen_s(&f, sz_file_name, "wt") != 0) {