fix compile error on win64.vs2010 platform

This commit is contained in:
weizhenwei 2017-06-21 15:43:41 +08:00
parent d77802d5e9
commit bcd8ddef59
2 changed files with 5 additions and 4 deletions

View File

@ -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;
}
/**

View File

@ -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: