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);
|
||||
*cloneImage = NULL;
|
||||
}
|
||||
|
||||
memcpy(&(*cloneImage)->format, &image->format, sizeof(GUID));
|
||||
else memcpy(&(*cloneImage)->format, &image->format, sizeof(GUID));
|
||||
|
||||
return stat;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue