=?UTF-8?Q?Iv=C3=A1n=20Matellanes=20?=: msvcirt: Implement filebuf status functions.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 6 10:15:43 CDT 2015
Module: wine
Branch: master
Commit: d669e7452713b97413952a8bd6ea1b90ed1dc988
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d669e7452713b97413952a8bd6ea1b90ed1dc988
Author: Iván Matellanes <matellanesivan at gmail.com>
Date: Wed Aug 5 20:32:35 2015 +0200
msvcirt: Implement filebuf status functions.
---
dlls/msvcirt/msvcirt.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c
index e07ecb5..bf89650 100644
--- a/dlls/msvcirt/msvcirt.c
+++ b/dlls/msvcirt/msvcirt.c
@@ -915,8 +915,8 @@ filebuf* __thiscall filebuf_close(filebuf *this)
DEFINE_THISCALL_WRAPPER(filebuf_fd, 4)
filedesc __thiscall filebuf_fd(const filebuf *this)
{
- FIXME("(%p) stub\n", this);
- return EOF;
+ TRACE("(%p)\n", this);
+ return this->fd;
}
/* ?is_open at filebuf@@QBEHXZ */
@@ -924,8 +924,8 @@ filedesc __thiscall filebuf_fd(const filebuf *this)
DEFINE_THISCALL_WRAPPER(filebuf_is_open, 4)
int __thiscall filebuf_is_open(const filebuf *this)
{
- FIXME("(%p) stub\n", this);
- return 0;
+ TRACE("(%p)\n", this);
+ return this->fd != -1;
}
/* ?open at filebuf@@QAEPAV1 at PBDHH@Z */
More information about the wine-cvs
mailing list