[1/4] gdi32: improve ExtCreatePen parameter checking [try2]
Evan Stade
estade at gmail.com
Mon Jul 30 21:09:02 CDT 2007
Hi
[try2] resubmit
dlls/gdi32/pen.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdi32/pen.c b/dlls/gdi32/pen.c
index fb84788..3dd545b 100644
--- a/dlls/gdi32/pen.c
+++ b/dlls/gdi32/pen.c
@@ -123,7 +123,7 @@ HPEN WINAPI ExtCreatePen( DWORD style, D
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;
--
1.4.1
More information about the wine-patches
mailing list