Reset freed HGDI_DC

CVE-2020-4031 thanks to @antonio-morales for finding this.
This commit is contained in:
akallabeth 2020-06-02 09:28:47 +02:00 committed by Armin Novak
parent 0a98c450c5
commit f753c25ad3

View File

@ -93,6 +93,7 @@ static BOOL gdi_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
if (!gdi_bitmap->bitmap)
{
gdi_DeleteDC(gdi_bitmap->hdc);
gdi_bitmap->hdc = NULL;
return FALSE;
}