gdiplus: do not memcpy over NULL ptrs (Coverity).
This commit is contained in:
parent
c6e7558cda
commit
e70e1249c3
|
@ -413,8 +413,7 @@ GpStatus WINGDIPAPI GdipCloneImage(GpImage *image, GpImage **cloneImage)
|
||||||
GdipDisposeImage(*cloneImage);
|
GdipDisposeImage(*cloneImage);
|
||||||
*cloneImage = NULL;
|
*cloneImage = NULL;
|
||||||
}
|
}
|
||||||
|
else memcpy(&(*cloneImage)->format, &image->format, sizeof(GUID));
|
||||||
memcpy(&(*cloneImage)->format, &image->format, sizeof(GUID));
|
|
||||||
|
|
||||||
return stat;
|
return stat;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue