Skip to content

Commit 63df102

Browse files
committed
[WIN32K] add missing parameter check in NtGdiArcInternal
svn path=/trunk/; revision=72653
1 parent 4e415d8 commit 63df102

File tree

1 file changed

+6
-0
lines changed
  • reactos/win32ss/gdi/ntgdi

1 file changed

+6
-0
lines changed

reactos/win32ss/gdi/ntgdi/arc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ NtGdiArcInternal(
376376
/* Yes, Windows really returns TRUE in this case */
377377
return TRUE;
378378
}
379+
if (arctype > GdiTypePie)
380+
{
381+
DC_UnlockDc(dc);
382+
EngSetLastError(ERROR_INVALID_PARAMETER);
383+
return FALSE;
384+
}
379385

380386
DC_vPrepareDCsForBlit(dc, NULL, NULL, NULL);
381387

0 commit comments

Comments
 (0)