From 2604b151aef63e02e8a7f42df05f41620c5360dc Mon Sep 17 00:00:00 2001 From: David Fort Date: Thu, 16 Feb 2017 14:57:36 +0100 Subject: [PATCH] Fix plugin loading for the sample client Some missing initialisation bits were preventing the sample client from loading the dynamic channel. --- client/Sample/freerdp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/Sample/freerdp.c b/client/Sample/freerdp.c index cb9310e5d..d46f8d15d 100644 --- a/client/Sample/freerdp.c +++ b/client/Sample/freerdp.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -174,6 +175,8 @@ int main(int argc, char* argv[]) instance->ContextNew = tf_context_new; instance->ContextFree = tf_context_free; + freerdp_register_addin_provider(freerdp_channels_load_static_addin_entry, 0); + if (!freerdp_context_new(instance)) { WLog_ERR(TAG, "Couldn't create context"); @@ -188,6 +191,7 @@ int main(int argc, char* argv[]) exit(0); } + if (!freerdp_client_load_addins(instance->context->channels, instance->settings)) exit(-1);