Commit d669e745 authored by Iván Matellanes's avatar Iván Matellanes Committed by Alexandre Julliard

msvcirt: Implement filebuf status functions.

parent 95fd3af1
...@@ -915,8 +915,8 @@ filebuf* __thiscall filebuf_close(filebuf *this) ...@@ -915,8 +915,8 @@ filebuf* __thiscall filebuf_close(filebuf *this)
DEFINE_THISCALL_WRAPPER(filebuf_fd, 4) DEFINE_THISCALL_WRAPPER(filebuf_fd, 4)
filedesc __thiscall filebuf_fd(const filebuf *this) filedesc __thiscall filebuf_fd(const filebuf *this)
{ {
FIXME("(%p) stub\n", this); TRACE("(%p)\n", this);
return EOF; return this->fd;
} }
/* ?is_open@filebuf@@QBEHXZ */ /* ?is_open@filebuf@@QBEHXZ */
...@@ -924,8 +924,8 @@ filedesc __thiscall filebuf_fd(const filebuf *this) ...@@ -924,8 +924,8 @@ filedesc __thiscall filebuf_fd(const filebuf *this)
DEFINE_THISCALL_WRAPPER(filebuf_is_open, 4) DEFINE_THISCALL_WRAPPER(filebuf_is_open, 4)
int __thiscall filebuf_is_open(const filebuf *this) int __thiscall filebuf_is_open(const filebuf *this)
{ {
FIXME("(%p) stub\n", this); TRACE("(%p)\n", this);
return 0; return this->fd != -1;
} }
/* ?open@filebuf@@QAEPAV1@PBDHH@Z */ /* ?open@filebuf@@QAEPAV1@PBDHH@Z */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment