Commit 16ecb49f authored by Giovanni Panozzo's avatar Giovanni Panozzo

RDP: fix to EndPaint

parent 8f45ae10
......@@ -286,6 +286,9 @@ BOOL rf_end_paint(rdpContext* context)
gdi = context->gdi;
rfi = (rfContext*)context;
if (gdi->primary->hdc->hwnd->invalid->null)
return TRUE;
x = gdi->primary->hdc->hwnd->invalid->x;
y = gdi->primary->hdc->hwnd->invalid->y;
w = gdi->primary->hdc->hwnd->invalid->w;
......@@ -300,6 +303,9 @@ BOOL rf_end_paint(rdpContext* context)
remmina_rdp_event_queue_ui_async(rfi->protocol_widget, ui);
gdi->primary->hdc->hwnd->invalid->null = TRUE;
gdi->primary->hdc->hwnd->ninvalid = 0;
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment