Fix for msvcrt sscanf/swscanf

Uwe Bonnes bon at
Sat Sep 28 06:20:42 CDT 2002

>>>>> "Jukka" == Jukka Heinonen <jhei at> writes:

    Jukka> Wine msvcrt sscanf and swscanf implementations incorrectly expect
    Jukka> strings to end with EOF. This crashes some applications which did
    Jukka> work with older versions of Wine that just forwarded msvcrt
    Jukka> sscanf to libc sscanf.

    Jukka> Changelog: Functions sscanf and swscanf now expect strings to be
    Jukka> terminated with null (0) instead of EOF (-1).

I asked some weeks ago about the test framework for msvcrt, but nobody
jumped on the waggon. The mix of msvcrt and libc was something I couldn't do
myself. Perhaps somebody can come up with someting.

It sure is important to codify findings like Jukkas.


Uwe Bonnes                bon at

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the wine-patches mailing list