From c1c555e3dffdf02e98d143a744f8f8161f36e98d Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Mon, 8 Mar 2010 15:09:13 -0600 Subject: [PATCH] gdiplus: Zero the MetafileHeader structure in GetMetafileHeader. Since we return success, we should at least make sure the result is not uninitialized memory. --- dlls/gdiplus/image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index d72d4cfbb8a..0d9557942c2 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -2108,6 +2108,8 @@ GpStatus WINGDIPAPI GdipGetMetafileHeaderFromMetafile(GpMetafile * metafile, if(!(calls++)) FIXME("not implemented\n"); + memset(header, 0, sizeof(MetafileHeader)); + return Ok; } -- 2.11.4.GIT