From 7db06cc35947cc88988aa4c70eb25c4b0bd5bac1 Mon Sep 17 00:00:00 2001 From: cbr-rc Date: Thu, 14 Nov 2024 17:27:10 +0100 Subject: [PATCH] do not always return FALSE when gdi is NULL --- libfreerdp/core/update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {