From 140861cadeef40b5865de5662f1063e325a7e1e6 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 6 Jun 2012 14:49:37 +0200 Subject: [PATCH] msvcp90: Call correct setstate function in basic_ostream class. --- dlls/msvcp90/ios.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c index 38ab71ae5a2..49837a891df 100644 --- a/dlls/msvcp90/ios.c +++ b/dlls/msvcp90/ios.c @@ -2975,7 +2975,7 @@ basic_ostream_char* __thiscall basic_ostream_char_flush(basic_ostream_char *this if(basic_ios_char_rdbuf_get(base) && ios_base_good(&base->base) && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base))==-1) - ios_base_setstate(&base->base, IOSTATE_badbit); + basic_ios_char_setstate(base, IOSTATE_badbit); return this; } @@ -3051,7 +3051,7 @@ basic_ostream_char* __thiscall basic_ostream_char_put(basic_ostream_char *this, if(!basic_ostream_char_sentry_create(this) || basic_streambuf_char_sputc(base->strbuf, ch)==EOF) { basic_ostream_char_sentry_destroy(this); - ios_base_setstate(&base->base, IOSTATE_badbit); + basic_ios_char_setstate(base, IOSTATE_badbit); return this; } @@ -3074,7 +3074,7 @@ basic_ostream_char* __thiscall basic_ostream_char_seekp(basic_ostream_char *this basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base), &seek, off, way, OPENMODE_out); if(seek.off==0 && seek.pos==-1 && seek.state==0) - ios_base_setstate(&base->base, IOSTATE_failbit); + basic_ios_char_setstate(base, IOSTATE_failbit); } return this; } @@ -3094,7 +3094,7 @@ basic_ostream_char* __thiscall basic_ostream_char_seekp_fpos(basic_ostream_char basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base), &seek, pos, OPENMODE_out); if(seek.off==0 && seek.pos==-1 && seek.state==0) - ios_base_setstate(&base->base, IOSTATE_failbit); + basic_ios_char_setstate(base, IOSTATE_failbit); } return this; } @@ -3131,7 +3131,7 @@ basic_ostream_char* __thiscall basic_ostream_char_write(basic_ostream_char *this if(!basic_ostream_char_sentry_create(this) || basic_streambuf_char_sputn(base->strbuf, str, count)!=count) { basic_ostream_char_sentry_destroy(this); - ios_base_setstate(&base->base, IOSTATE_badbit); + basic_ios_char_setstate(base, IOSTATE_badbit); return this; }