Commit f4f7689c authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

If a zero index is passed to META_SELECTCLIPREGION reset the clip

region.
parent 097df180
......@@ -1215,7 +1215,12 @@ BOOL WINAPI PlayMetaFileRecord( HDC hdc, HANDLETABLE *ht, METARECORD *mr, UINT
break;
case META_SELECTCLIPREGION:
SelectClipRgn(hdc, *(ht->objectHandle + mr->rdParm[0]));
{
HRGN hrgn = 0;
if (mr->rdParm[0]) hrgn = *(ht->objectHandle + mr->rdParm[0]);
SelectClipRgn(hdc, hrgn);
}
break;
case META_DIBCREATEPATTERNBRUSH:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment