[version/info.c] Fixed needed conversion (RESEND 2)

Paul Vriens paul.vriens at xs4all.nl
Fri Jul 29 01:49:04 CDT 2005


Got the calculation wrong for memcpy in VerQueryValueW, should have been
'len * sizeof(WCHAR)'.

===
Hi,

this is resend of "Start fixing some needed conversion" plus the full
fixes for the conversions. Re-diffed with current CVS.

If VerQueryValueA get's a 32bit resource, or VerQueryValueW get's a
16bit resource some conversion is needed, but not for root (\) and
VarFileInfo information as they are not strings.

I've tested this with 16bit and 32bit resources and it works ! I don't
know if the conversions are over-complex (or bad C), so extra comments
appreciated.

I also removed some whitespace.

Changelog
  Cleanup whitespace
  Conversion fixes

Cheers,

Paul.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version_info_9.c.diff
Type: text/x-patch
Size: 5478 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050729/36a063e0/version_info_9.c.bin


More information about the wine-patches mailing list