From 21b90492316314cba03a181918f2bae58ea4eea8 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 16 Feb 2010 11:54:48 +0100 Subject: [PATCH] gdiplus: Dereference texture after checking it for NULL (Coverity). --- dlls/gdiplus/brush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index c867f913259..abcc47f8666 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -801,11 +801,11 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %p)\n", image, imageattr, x, y, width, height, texture); - *texture = NULL; - if(!image || !texture || x < 0.0 || y < 0.0 || width < 0.0 || height < 0.0) return InvalidParameter; + *texture = NULL; + if(image->type != ImageTypeBitmap){ FIXME("not implemented for image type %d\n", image->type); return NotImplemented;