VERSION_GetLinkedDllVersion bug fix

Ivan Leo Puoti puoti at inwind.it
Mon Dec 13 17:05:51 CST 2004


> It was 4. Pehaps there is yet another bug someplace else.
That's why in my updated patch I check the OS using the available info.
It's here, you may want to try it out and check if it works for you app
http://www.winehq.com/hypermail/wine-patches/2004/12/att-0275/01-wkivcf2.diff
You patch was wrong because the fact that MajorSubsystemVersion is 4 and
MinorOperatingSystemVersion is 0 doesn't mean the OS is win2k, it could be nt4
or win95, and returning win2000 when winver is set to win95 could cause problems.
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/osversioninfo_str.asp
Also it's better to use switch when comparing a variable to multiple values,
it's more readable, and you added some useless braces.

Ivan.



____________________________________________________________
Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega, senza costi di attivazione.
Abbonati subito su http://www.libero.it






More information about the wine-devel mailing list