Commit e70e1249 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

gdiplus: do not memcpy over NULL ptrs (Coverity).

parent c6e7558c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment