[MSVCRT] fix scanf regression
Raphael
fenix at club-internet.fr
Mon May 17 02:34:53 CDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Since a lot of time the MaxPayneDemo was broken (regression) with a really
error message:
Exception:
Parsing message
"maxpayne_gamemode->gm_changeglobalgamespeed(.8,.0);"
by "::Alley::camera1" caused following error:
Unable to parse ".8;.0" with format string '%f,%f'. Check parameter 1
Closing...
After some testing, i see the game use two scanf (scanf(".8"), scanf(".0"))
for parsing the script arguments and our implementation of scanf fail on
parsing ".8" (it expect float numbers always beginning with a number and not
a dot)
Changelog:
- fix scanf handling of float numbers (beginning with a dot)
Regards,
Raphael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAqGsjp7NA3AmQTU4RAqZ8AJ49tCmHgHpZSSNtu68T0qxus2mJCQCffXWN
zMKnE878neZtAuzaiw4th0A=
=pg6z
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvcrt_scanf.diff
Type: text/x-diff
Size: 1699 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040517/811993c7/msvcrt_scanf.bin
More information about the wine-patches
mailing list