mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
gdiplus: Check count argument in GdipTransformMatrixPoints.
This commit is contained in:
parent
4e8ef34676
commit
5eaf84d39b
@ -244,7 +244,7 @@ GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts,
|
||||
REAL x, y;
|
||||
INT i;
|
||||
|
||||
if(!matrix || !pts)
|
||||
if(!matrix || !pts || count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
for(i = 0; i < count; i++)
|
||||
@ -265,6 +265,9 @@ GpStatus WINGDIPAPI GdipTransformMatrixPointsI(GpMatrix *matrix, GpPoint *pts, I
|
||||
GpStatus ret;
|
||||
INT i;
|
||||
|
||||
if(count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
ptsF = GdipAlloc(sizeof(GpPointF) * count);
|
||||
if(!ptsF)
|
||||
return OutOfMemory;
|
||||
|
Loading…
Reference in New Issue
Block a user