Merge pull request #10861 from Rubycat-R-D-Labs/bitmap_updates_with_no_gdi

do not always return FALSE when gdi is NULL
This commit is contained in:
akallabeth
2024-11-14 18:35:02 +01:00
committed by GitHub

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