Commit 32d03da9 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Add a missing NULL check to GdipMeasureString.

parent 0f919e36
......@@ -3583,7 +3583,7 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
debugstr_wn(string, length), length, font, debugstr_rectf(rect), format,
bounds, codepointsfitted, linesfilled);
if(!graphics || !string || !font || !rect)
if(!graphics || !string || !font || !rect || !bounds)
return InvalidParameter;
if(linesfilled) *linesfilled = 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