From 74654c442a8f66a23e240cc3a244c65303135cfb Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 30 Mar 2010 10:34:01 -0500 Subject: [PATCH 2/8] gdiplus: Add a missing NULL check to GdipMeasureString. --- dlls/gdiplus/graphics.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index c5242e4..722d7f4 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; -- 1.6.3.3