[core,update] return if gdi is NULL
This commit is contained in:
parent
db09d1d7f8
commit
a95426e7c4
@ -3331,7 +3331,9 @@ BOOL update_begin_paint(rdpUpdate* update)
|
||||
|
||||
/* Reset the invalid regions, we start a new frame here. */
|
||||
rdpGdi* gdi = update->context->gdi;
|
||||
WINPR_ASSERT(gdi);
|
||||
if (!gdi)
|
||||
return FALSE;
|
||||
|
||||
if (gdi->hdc && gdi->primary && gdi->primary->hdc)
|
||||
{
|
||||
HGDI_WND hwnd = gdi->primary->hdc->hwnd;
|
||||
|
Loading…
Reference in New Issue
Block a user