mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 03:03:37 +00:00
gdi32: Improve ExtCreatePen parameter checking.
This commit is contained in:
parent
e4fb0fe9e9
commit
030abff4ac
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue