Author: cwittich
Date: Sun Sep 11 09:01:04 2016
New Revision: 72653
URL:
http://svn.reactos.org/svn/reactos?rev=72653&view=rev
Log:
[WIN32K] add missing parameter check in NtGdiArcInternal
Modified:
trunk/reactos/win32ss/gdi/ntgdi/arc.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/arc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/arc.c?re…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/arc.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/arc.c [iso-8859-1] Sun Sep 11 09:01:04 2016
@@ -376,6 +376,12 @@
/* 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);