diff --git a/channels/rail/rail_main.c b/channels/rail/rail_main.c index 58d1de40e..3b2c63a1d 100644 --- a/channels/rail/rail_main.c +++ b/channels/rail/rail_main.c @@ -128,7 +128,7 @@ static void rail_recv_set_sysparams_event(rdpRailOrder* rail_order, RDP_EVENT* e while (data && data->size > 0) { rail_process_plugin_data(rail_order, data); - data = (RDP_PLUGIN_DATA*)(((void*) data) + data->size); + data = (RDP_PLUGIN_DATA*)((char *)(data) + data->size); } }