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

This commit is contained in:
Marcus Meissner 2009-09-20 18:48:39 +02:00 committed by Alexandre Julliard
parent c6e7558cda
commit e70e1249c3
1 changed files with 1 additions and 2 deletions

View File

@ -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;
} }