=?UTF-8?Q?Iv=C3=A1n=20Matellanes=20?=: msvcirt: Implement ios::tie.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 20 14:20:49 CDT 2015
Module: wine
Branch: master
Commit: 5fea62039986fb736c50b6de268a33985d11809e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5fea62039986fb736c50b6de268a33985d11809e
Author: Iván Matellanes <matellanesivan at gmail.com>
Date: Fri Jul 17 16:36:40 2015 +0200
msvcirt: Implement ios::tie.
---
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 4e4315e..d1c5509 100644
--- a/dlls/msvcirt/msvcirt.c
+++ b/dlls/msvcirt/msvcirt.c
@@ -1142,8 +1142,12 @@ void __cdecl ios_sync_with_stdio(void)
DEFINE_THISCALL_WRAPPER(ios_tie_set, 8)
ostream* __thiscall ios_tie_set(ios *this, ostream *ostr)
{
- FIXME("(%p %p) stub\n", this, ostr);
- return NULL;
+ ostream *prev = this->tie;
+
+ TRACE("(%p %p)\n", this, ostr);
+
+ this->tie = ostr;
+ return prev;
}
/* ?tie at ios@@QBEPAVostream@@XZ */
@@ -1151,8 +1155,8 @@ ostream* __thiscall ios_tie_set(ios *this, ostream *ostr)
DEFINE_THISCALL_WRAPPER(ios_tie_get, 4)
ostream* __thiscall ios_tie_get(const ios *this)
{
- FIXME("(%p) stub\n", this);
- return NULL;
+ TRACE("(%p)\n", this);
+ return this->tie;
}
/* ?unlock at ios@@QAAXXZ */
More information about the wine-cvs
mailing list