Wine msvcrt sscanf and swscanf implementations incorrectly expect strings to end with EOF. This crashes some applications which did work with older versions of Wine that just forwarded msvcrt sscanf to libc sscanf. Changelog: Functions sscanf and swscanf now expect strings to be terminated with null (0) instead of EOF (-1). Index: dlls/msvcrt/scanf.h =================================================================== RCS file: /home/wine/wine/dlls/msvcrt/scanf.h,v retrieving revision 1.2 diff -u -r1.2 scanf.h --- dlls/msvcrt/scanf.h 9 Sep 2002 19:18:53 -0000 1.2 +++ dlls/msvcrt/scanf.h 28 Sep 2002 10:05:54 -0000 @@ -47,6 +47,8 @@ #define _FUNCTION_ _cscanf(const _CHAR_ *format, ...) #else #ifdef STRING +#undef _EOF_ +#define _EOF_ 0 #define _GETC_(file) *file++ #define _UNGETC_(nch, file) file-- #ifdef WIDE_SCANF -- Jukka Heinonen <http://www.iki.fi/jhei/>