[4/4] msvcirt: Implement filebuf::setbuf
Iván Matellanes
matellanesivan at gmail.com
Wed Aug 5 13:32:47 CDT 2015
---
dlls/msvcirt/msvcirt.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c
index 0f82f30..fbc4a29 100644
--- a/dlls/msvcirt/msvcirt.c
+++ b/dlls/msvcirt/msvcirt.c
@@ -1000,8 +1000,14 @@ streampos __thiscall filebuf_seekoff(filebuf *this, streamoff offset, ios_seek_d
DEFINE_THISCALL_WRAPPER(filebuf_setbuf, 12)
streambuf* __thiscall filebuf_setbuf(filebuf *this, char *buffer, int length)
{
- FIXME("(%p %p %d) stub\n", this, buffer, length);
- return NULL;
+ streambuf *ret;
+
+ TRACE("(%p %p %d)\n", this, buffer, length);
+
+ streambuf_lock(&this->base);
+ ret = streambuf_setbuf(&this->base, buffer, length);
+ streambuf_unlock(&this->base);
+ return ret;
}
/* ?setmode at filebuf@@QAEHH at Z */
--
2.1.4
More information about the wine-patches
mailing list