Module: wine
Branch: master
Commit: c1c555e3dffdf02e98d143a744f8f8161f36e98d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1c555e3dffdf02e98d143a74…
Author: Vincent Povirk <vincent(a)codeweavers.com>
Date: Mon Mar 8 15:09:13 2010 -0600
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 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index d72d4cf..0d95579 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;
}