@@ -100,6 +100,20 @@ static BOOL rdp_freerdp_load_channels(freerdp* instance) {
100100 guac_rdp_client * rdp_client = (guac_rdp_client * ) client -> data ;
101101 guac_rdp_settings * settings = rdp_client -> settings ;
102102
103+ /* Load RAIL plugin if RemoteApp in use */
104+ if (settings -> remote_app != NULL )
105+ guac_rdp_rail_load_plugin (context );
106+
107+ /* Load SVC plugin instances for all static channels */
108+ if (settings -> svc_names != NULL ) {
109+
110+ char * * current = settings -> svc_names ;
111+ do {
112+ guac_rdp_pipe_svc_load_plugin (context , * current );
113+ } while (* (++ current ) != NULL );
114+
115+ }
116+
103117 /* Load "disp" plugin for display update */
104118 if (settings -> resize_method == GUAC_RESIZE_DISPLAY_UPDATE )
105119 guac_rdp_disp_load_plugin (context );
@@ -178,20 +192,6 @@ static BOOL rdp_freerdp_pre_connect(freerdp* instance) {
178192 /* Init FreeRDP add-in provider */
179193 freerdp_register_addin_provider (freerdp_channels_load_static_addin_entry , 0 );
180194
181- /* Load RAIL plugin if RemoteApp in use */
182- if (settings -> remote_app != NULL )
183- guac_rdp_rail_load_plugin (context );
184-
185- /* Load SVC plugin instances for all static channels */
186- if (settings -> svc_names != NULL ) {
187-
188- char * * current = settings -> svc_names ;
189- do {
190- guac_rdp_pipe_svc_load_plugin (context , * current );
191- } while (* (++ current ) != NULL );
192-
193- }
194-
195195 /* Init FreeRDP internal GDI implementation */
196196 if (!gdi_init (instance , guac_rdp_get_native_pixel_format (FALSE)))
197197 return FALSE;
0 commit comments