diff --git a/reactos/win32ss/gdi/ntgdi/arc.c b/reactos/win32ss/gdi/ntgdi/arc.c index 16e63e55adf..c60fadfd5da 100644 --- a/reactos/win32ss/gdi/ntgdi/arc.c +++ b/reactos/win32ss/gdi/ntgdi/arc.c @@ -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);