From 32d03da99843bd43078507a077fbd772d751a79d Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 30 Mar 2010 10:34:01 -0500 Subject: [PATCH] gdiplus: Add a missing NULL check to GdipMeasureString. --- dlls/gdiplus/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index c5242e41ea1..722d7f4382c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -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; -- 2.11.4.GIT