[WIN32K] add missing parameter check in NtGdiArcInternal

svn path=/trunk/; revision=72653
This commit is contained in:
Christoph von Wittich 2016-09-11 09:01:04 +00:00
parent 4e415d8996
commit 63df102547

View file

@ -376,6 +376,12 @@ NtGdiArcInternal(
/* Yes, Windows really returns TRUE in this case */
return TRUE;
}
if (arctype > GdiTypePie)
{
DC_UnlockDc(dc);
EngSetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
DC_vPrepareDCsForBlit(dc, NULL, NULL, NULL);