Commit 22c6e576 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus: Make GdipSetPenDashArray return OutOfMemory on (count <= 0).

parent 2d6ae5de
......@@ -251,6 +251,9 @@ GpStatus WINGDIPAPI GdipSetPenDashArray(GpPen *pen, GDIPCONST REAL *dash,
if(!pen || !dash)
return InvalidParameter;
if(count <= 0)
return OutOfMemory;
for(i = 0; i < count; i++){
sum += dash[i];
if(dash[i] < 0.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