Iván Matellanes : msvcirt: Implement ios::width.
Module: wine Branch: master Commit: c21fa9c532dfc41d33b21c4d2fb5ab6937c4c8d0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c21fa9c532dfc41d33b21c4d2f... Author: Iván Matellanes <matellanesivan(a)gmail.com> Date: Fri Jul 17 16:36:32 2015 +0200 msvcirt: Implement ios::width. --- dlls/msvcirt/msvcirt.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c index 275a849..4e4315e 100644 --- a/dlls/msvcirt/msvcirt.c +++ b/dlls/msvcirt/msvcirt.c @@ -1199,8 +1199,12 @@ LONG __thiscall ios_unsetf(ios *this, LONG flags) DEFINE_THISCALL_WRAPPER(ios_width_set, 8) int __thiscall ios_width_set(ios *this, int width) { - FIXME("(%p %d) stub\n", this, width); - return 0; + int prev = this->width; + + TRACE("(%p %d)\n", this, width); + + this->width = width; + return prev; } /* ?width(a)ios@@QBEHXZ */ @@ -1208,8 +1212,8 @@ int __thiscall ios_width_set(ios *this, int width) DEFINE_THISCALL_WRAPPER(ios_width_get, 4) int __thiscall ios_width_get(const ios *this) { - FIXME("(%p) stub\n", this); - return 0; + TRACE("(%p)\n", this); + return this->width; } /* ?xalloc(a)ios@@SAHXZ */
participants (1)
-
Alexandre Julliard