gdiplus: Add a missing NULL check to GdipMeasureString.
This commit is contained in:
parent
0f919e365b
commit
32d03da998
|
@ -3583,7 +3583,7 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
|
||||||
debugstr_wn(string, length), length, font, debugstr_rectf(rect), format,
|
debugstr_wn(string, length), length, font, debugstr_rectf(rect), format,
|
||||||
bounds, codepointsfitted, linesfilled);
|
bounds, codepointsfitted, linesfilled);
|
||||||
|
|
||||||
if(!graphics || !string || !font || !rect)
|
if(!graphics || !string || !font || !rect || !bounds)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
if(linesfilled) *linesfilled = 0;
|
if(linesfilled) *linesfilled = 0;
|
||||||
|
|
Loading…
Reference in New Issue