[version/info.c] Start of conversion fixes

Paul Vriens paul.vriens at xs4all.nl
Fri Aug 26 05:20:54 CDT 2005


this patch makes sure that enough space is reserved for the structure. The
patch is based on testing on W2K/XP/W2K3, and this is where the
calculations come from. The extra space is needed for conversion needs.
VerQueryValueA put's ANSI strings (converted from UNICODE if 32bits) into
this area, VerQueryValueW put's UNICODE strings (converted from ANSI if
16bits) into this area. The '#if 0' are there, cause I still haven't
figured how to get rid of the warnings. If warnings would have been
acceptable the patch would make sure that the conversion are indeed placed
in the extra space (instead of in the structure as it is right now).

  Reserve extra space for conversions.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: info_latest.diff
Type: text/x-patch
Size: 8135 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050826/87943a97/info_latest.bin

More information about the wine-patches mailing list