msvcp90: Fix ios_base_setf implementation.

This commit is contained in:
Piotr Caban 2014-01-20 15:08:45 +01:00 committed by Alexandre Julliard
parent 12cfebb683
commit 47f4e08a93
2 changed files with 12 additions and 2 deletions

View File

@ -4494,7 +4494,12 @@ IOSB_fmtflags __thiscall ios_base_setf_mask(ios_base *this, IOSB_fmtflags flags,
DEFINE_THISCALL_WRAPPER(ios_base_setf, 8) DEFINE_THISCALL_WRAPPER(ios_base_setf, 8)
IOSB_fmtflags __thiscall ios_base_setf(ios_base *this, IOSB_fmtflags flags) IOSB_fmtflags __thiscall ios_base_setf(ios_base *this, IOSB_fmtflags flags)
{ {
return ios_base_setf_mask(this, flags, ~0); IOSB_fmtflags ret = this->fmtfl;
TRACE("(%p %x)\n", this, flags);
this->fmtfl |= flags & FMTFLAG_mask;
return ret;
} }
/* ?setstate@ios_base@std@@QAEXH_N@Z */ /* ?setstate@ios_base@std@@QAEXH_N@Z */

View File

@ -5165,7 +5165,12 @@ IOSB_fmtflags __thiscall ios_base_setf_mask(ios_base *this, IOSB_fmtflags flags,
DEFINE_THISCALL_WRAPPER(ios_base_setf, 8) DEFINE_THISCALL_WRAPPER(ios_base_setf, 8)
IOSB_fmtflags __thiscall ios_base_setf(ios_base *this, IOSB_fmtflags flags) IOSB_fmtflags __thiscall ios_base_setf(ios_base *this, IOSB_fmtflags flags)
{ {
return ios_base_setf_mask(this, flags, ~0); IOSB_fmtflags ret = this->fmtfl;
TRACE("(%p %x)\n", this, flags);
this->fmtfl |= flags & FMTFLAG_mask;
return ret;
} }
/* ?setstate@ios_base@std@@QAEXH_N@Z */ /* ?setstate@ios_base@std@@QAEXH_N@Z */