From 7904d9c002bd5525398ca4e5bd374e54a89e93ad Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 29 Sep 2019 15:37:09 -0700 Subject: [PATCH] GUACAMOLE-249: Initialize FreeRDP's GDI implementation (default GDI handlers will otherwise fail). --- src/protocols/rdp/rdp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/protocols/rdp/rdp.c b/src/protocols/rdp/rdp.c index cc13507c..134de7de 100644 --- a/src/protocols/rdp/rdp.c +++ b/src/protocols/rdp/rdp.c @@ -61,6 +61,7 @@ #include #include #include +#include #include #include #include @@ -227,6 +228,10 @@ BOOL rdp_freerdp_pre_connect(freerdp* instance) { /* Init FreeRDP cache */ instance->context->cache = cache_new(instance->settings); + /* Init FreeRDP internal GDI implementation */ + if (!gdi_init(instance, PIXEL_FORMAT_XRGB32)) + return FALSE; + /* Set up bitmap handling */ rdpBitmap bitmap = *graphics->Bitmap_Prototype; bitmap.size = sizeof(guac_rdp_bitmap);