From 63df1025470b476e33dd6774c06951127d5b5a4a Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 11 Sep 2016 09:01:04 +0000 Subject: [PATCH] [WIN32K] add missing parameter check in NtGdiArcInternal svn path=/trunk/; revision=72653 --- reactos/win32ss/gdi/ntgdi/arc.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);