diff --git a/libfreerdp/core/update.c b/libfreerdp/core/update.c index 50a6ef85c..7842f51fe 100644 --- a/libfreerdp/core/update.c +++ b/libfreerdp/core/update.c @@ -3325,7 +3325,7 @@ BOOL update_begin_paint(rdpUpdate* update) /* Reset the invalid regions, we start a new frame here. */ rdpGdi* gdi = update->context->gdi; if (!gdi) - return FALSE; + return rc; if (gdi->hdc && gdi->primary && gdi->primary->hdc) {