gdi32: Improve ExtCreatePen parameter checking.

This commit is contained in:
Evan Stade 2007-07-30 19:09:02 -07:00 committed by Alexandre Julliard
parent e4fb0fe9e9
commit 030abff4ac

View file

@ -123,7 +123,7 @@ HPEN WINAPI ExtCreatePen( DWORD style, DWORD width,
if ((style & PS_STYLE_MASK) == PS_USERSTYLE)
{
if (!style_count || !style_bits)
if (!style_count || (style_count > 16) || !style_bits)
{
SetLastError(ERROR_INVALID_PARAMETER);
return 0;