mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[crt]
fix swscanf winetest svn path=/trunk/; revision=62202
This commit is contained in:
parent
e3a1a7262d
commit
3797d9184a
1 changed files with 20 additions and 16 deletions
|
@ -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=='-');
|
||||
|
|
Loading…
Reference in a new issue