From bcd8ddef5903f78be57106688ad3cb9d00981213 Mon Sep 17 00:00:00 2001 From: weizhenwei Date: Wed, 21 Jun 2017 15:43:41 +0800 Subject: [PATCH] fix compile error on win64.vs2010 platform --- channels/rail/client/rail_main.c | 5 +++-- channels/rail/client/rail_orders.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/channels/rail/client/rail_main.c b/channels/rail/client/rail_main.c index e24e0fb0f..ffcdcd65e 100644 --- a/channels/rail/client/rail_main.c +++ b/channels/rail/client/rail_main.c @@ -104,6 +104,7 @@ static UINT rail_client_execute(RailClientContext* context, RAIL_EXEC_ORDER* exec) { char* exeOrFile; + UINT error; railPlugin* rail = (railPlugin*) context->handle; exeOrFile = exec->RemoteApplicationProgram; @@ -122,11 +123,11 @@ static UINT rail_client_execute(RailClientContext* context, &exec->workingDir); /* ShellWorkingDirectory */ rail_string_to_unicode_string(exec->RemoteApplicationArguments, &exec->arguments); /* RemoteApplicationCmdLine */ - UINT ret = rail_send_client_exec_order(rail, exec); + error = rail_send_client_exec_order(rail, exec); free(exec->exeOrFile.string); free(exec->workingDir.string); free(exec->arguments.string); - return ret; + return error; } /** diff --git a/channels/rail/client/rail_orders.c b/channels/rail/client/rail_orders.c index 0a6abde77..0cb6832a8 100644 --- a/channels/rail/client/rail_orders.c +++ b/channels/rail/client/rail_orders.c @@ -650,9 +650,9 @@ UINT rail_order_recv(railPlugin* rail, wStream* s) case RDP_RAIL_ORDER_EXEC_RESULT: { RAIL_EXEC_RESULT_ORDER execResult; - UINT ret = rail_recv_exec_result_order(rail, &execResult, s); + error = rail_recv_exec_result_order(rail, &execResult, s); free(execResult.exeOrFile.string); - return ret; + return error; } case RDP_RAIL_ORDER_SYSPARAM: