gdi32: Avoid uninitialized variable use in EnumEnhMetaFile (MSVC).

Thomas Faber thomas.faber at reactos.org
Sat Mar 28 07:37:03 CDT 2015


info->init_transform is never used if no hdc is present, so calculating
it is pointless -- and also uses vp_size and win_size uninitialized.

MSVC builds with /RTCu complain about this when running test_ExtTextOut
(at "xscale = (double)vp_size.cx / (double)win_size.cx;")

The patch looks big due to indentation changes, but diff -w shows that
it's trivial.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-gdi32-Avoid-uninitialized-variable-use-in-EnumEnhMet.patch
Type: text/x-diff
Size: 6386 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150328/b69c7ab4/attachment.patch>


More information about the wine-patches mailing list