fix swscanf winetest

svn path=/trunk/; revision=62202
This commit is contained in:
Christoph von Wittich 2014-02-16 05:42:42 +00:00
parent e3a1a7262d
commit 3797d9184a

View file

@ -26,7 +26,7 @@
#ifdef WIDE_SCANF
#define _CHAR_ wchar_t
#define _EOF_ WEOF
#define _EOF_RET WEOF
#define _EOF_RET (short)WEOF
#define _ISSPACE_(c) iswspace(c)
#define _ISDIGIT_(c) iswdigit(c)
#define _WIDE2SUPPORTED_(c) c /* No conversion needed (wide to wide) */
@ -88,8 +88,11 @@ _FUNCTION_ {
#endif /* STRING */
#endif /* CONSOLE */
#endif /* WIDE_SCANF */
nch = _GETC_(file);
if (nch == _EOF_) return _EOF_RET;
if (nch == _EOF_) {
return _EOF_RET;
}
while (*format) {
/* a whitespace character in the format string causes scanf to read,
@ -248,6 +251,7 @@ _FUNCTION_ {
/* skip initial whitespace */
while ((nch!=_EOF_) && _ISSPACE_(nch))
nch = _GETC_(file);
/* get sign. */
if (nch == '-' || nch == '+') {
negative = (nch=='-');