Commit 030abff4 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdi32: Improve ExtCreatePen parameter checking.

parent e4fb0fe9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment