msvcp60: Fixed basic_istream::seekg implementation.
This commit is contained in:
parent
9796cf388c
commit
a43840bcdf
|
@ -7264,14 +7264,7 @@ basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this
|
|||
fpos_int ret;
|
||||
|
||||
basic_streambuf_char_pubseekoff(strbuf, &ret, off, dir, OPENMODE_in);
|
||||
|
||||
if(ret.off==-1 && ret.pos==0 && ret.state==0)
|
||||
basic_ios_char_setstate(base, IOSTATE_failbit);
|
||||
else
|
||||
basic_ios_char_clear(base, IOSTATE_goodbit);
|
||||
return this;
|
||||
}else
|
||||
basic_ios_char_clear(base, IOSTATE_goodbit);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
@ -7290,14 +7283,7 @@ basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char
|
|||
fpos_int ret;
|
||||
|
||||
basic_streambuf_char_pubseekpos(strbuf, &ret, pos, OPENMODE_in);
|
||||
|
||||
if(ret.off==-1 && ret.pos==0 && ret.state==0)
|
||||
basic_ios_char_setstate(base, IOSTATE_failbit);
|
||||
else
|
||||
basic_ios_char_clear(base, IOSTATE_goodbit);
|
||||
return this;
|
||||
}else
|
||||
basic_ios_char_clear(base, IOSTATE_goodbit);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
@ -8530,14 +8516,7 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *t
|
|||
fpos_int ret;
|
||||
|
||||
basic_streambuf_wchar_pubseekoff(strbuf, &ret, off, dir, OPENMODE_in);
|
||||
|
||||
if(ret.off==-1 && ret.pos==0 && ret.state==0)
|
||||
basic_ios_wchar_setstate(base, IOSTATE_failbit);
|
||||
else
|
||||
basic_ios_wchar_clear(base, IOSTATE_goodbit);
|
||||
return this;
|
||||
}else
|
||||
basic_ios_wchar_clear(base, IOSTATE_goodbit);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
@ -8558,14 +8537,7 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wch
|
|||
fpos_int ret;
|
||||
|
||||
basic_streambuf_wchar_pubseekpos(strbuf, &ret, pos, OPENMODE_in);
|
||||
|
||||
if(ret.off==-1 && ret.pos==0 && ret.state==0)
|
||||
basic_ios_wchar_setstate(base, IOSTATE_failbit);
|
||||
else
|
||||
basic_ios_wchar_clear(base, IOSTATE_goodbit);
|
||||
return this;
|
||||
}else
|
||||
basic_ios_wchar_clear(base, IOSTATE_goodbit);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue