do not always return FALSE when gdi is NULL

This commit is contained in:
cbr-rc 2024-11-14 17:27:10 +01:00
parent d0db9603fc
commit 7db06cc359

View File

@ -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)
{