mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
[WIN32K] add missing parameter check in NtGdiArcInternal
svn path=/trunk/; revision=72653
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user