gdiplus: Dereference texture after checking it for NULL (Coverity).
This commit is contained in:
parent
e5f0cdfcf6
commit
21b9049231
|
@ -801,11 +801,11 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
|
||||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %p)\n", image, imageattr, x, y, width, height,
|
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %p)\n", image, imageattr, x, y, width, height,
|
||||||
texture);
|
texture);
|
||||||
|
|
||||||
*texture = NULL;
|
|
||||||
|
|
||||||
if(!image || !texture || x < 0.0 || y < 0.0 || width < 0.0 || height < 0.0)
|
if(!image || !texture || x < 0.0 || y < 0.0 || width < 0.0 || height < 0.0)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
*texture = NULL;
|
||||||
|
|
||||||
if(image->type != ImageTypeBitmap){
|
if(image->type != ImageTypeBitmap){
|
||||||
FIXME("not implemented for image type %d\n", image->type);
|
FIXME("not implemented for image type %d\n", image->type);
|
||||||
return NotImplemented;
|
return NotImplemented;
|
||||||
|
|
Loading…
Reference in New Issue