Skip to content

Commit

Permalink
GUACAMOLE-1997: Fix issue on screen resize with freerdp >= 3.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
corentin-soriano committed Nov 4, 2024
1 parent be51ad1 commit 7791c23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/protocols/rdp/gdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ BOOL guac_rdp_gdi_end_paint(rdpContext* context) {

guac_display_layer* default_layer = guac_display_default_layer(rdp_client->display);
guac_display_layer_raw_context* current_context = rdp_client->current_context;
GUAC_ASSERT(current_context != NULL);

/* Handle the case where EndPaint was called without BeginPaint */
if (current_context == NULL)
return TRUE;

/* Ignore paint if GDI output is suppressed */
if (gdi->suppressOutput)
Expand Down

0 comments on commit 7791c23

Please sign in to comment.