msvcp60: Fixed basic_istream::ipfx implementation.

This commit is contained in:
Piotr Caban 2012-11-14 15:39:19 +01:00 committed by Alexandre Julliard
parent 1cd95d4f82
commit 9796cf388c
1 changed files with 2 additions and 12 deletions

View File

@ -6756,12 +6756,7 @@ static MSVCP_bool basic_istream_char__Ipfx(basic_istream_char *this, MSVCP_bool
for(ch = basic_streambuf_char_sgetc(strbuf); ;
ch = basic_streambuf_char_snextc(strbuf)) {
if(ch == EOF) {
basic_ios_char_setstate(base, IOSTATE_eofbit);
break;
}
if(!ctype_char_is_ch(ctype, _SPACE|_BLANK, ch))
if(ch==EOF || !ctype_char_is_ch(ctype, _SPACE|_BLANK, ch))
break;
}
}
@ -7985,12 +7980,7 @@ static MSVCP_bool basic_istream_wchar__Ipfx(basic_istream_wchar *this, MSVCP_boo
for(ch = basic_streambuf_wchar_sgetc(strbuf); ;
ch = basic_streambuf_wchar_snextc(strbuf)) {
if(ch == WEOF) {
basic_ios_wchar_setstate(base, IOSTATE_eofbit);
break;
}
if(!ctype_wchar_is_ch(ctype, _SPACE|_BLANK, ch))
if(ch==WEOF || !ctype_wchar_is_ch(ctype, _SPACE|_BLANK, ch))
break;
}
}