[version/info.c] Don't always convert win32 to win16 structure

Paul Vriens Paul.Vriens at xs4all.nl
Tue Jul 19 15:34:56 CDT 2005


Hi,

the previous added test shows that the structure is the same for both
the A and W version of GetFileVersionInfo.

The newly added test shows that VerQueryValueA return a normal string
out of this structure and VerQueryValueW returns a unicode string.

With the changes to version/info.c, Process Explorer now shows the
correct information for the version.

I have to find a better way to retrieve the strings from the unicode
structure in VerQueryValueA (instead of converting the whole structure)
though.

I do still have a small issue with a 16bit windows application. It seems
that the version is wrong here. But hey, Process Explorer on Windows
doesn't show the process at all :-).

Changelog
   Add tests for VerQueryValue[AW]
   Don't convert the struct to a win16 one in GetFileVersionInfoA
   Convert the struct to win16 in VerQueryValueA (for now)

Cheers,

Paul.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version_info.diff
Type: text/x-patch
Size: 6338 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050719/3d0a9907/version_info.bin


More information about the wine-patches mailing list