=?UTF-8?Q?Iv=C3=A1n=20Matellanes=20?=: msvcirt: Implement ios::precision.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 20 14:20:49 CDT 2015
Module: wine
Branch: master
Commit: 80f5fd53617fcf5797318c111b24c127d5b901f7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=80f5fd53617fcf5797318c111b24c127d5b901f7
Author: Iván Matellanes <matellanesivan at gmail.com>
Date: Fri Jul 17 16:36:27 2015 +0200
msvcirt: Implement ios::precision.
---
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 068beab..275a849 100644
--- a/dlls/msvcirt/msvcirt.c
+++ b/dlls/msvcirt/msvcirt.c
@@ -1047,8 +1047,12 @@ ios* __cdecl ios_oct(ios *this)
DEFINE_THISCALL_WRAPPER(ios_precision_set, 8)
int __thiscall ios_precision_set(ios *this, int prec)
{
- FIXME("(%p %d) stub\n", this, prec);
- return 0;
+ int prev = this->precision;
+
+ TRACE("(%p %d)\n", this, prec);
+
+ this->precision = prec;
+ return prev;
}
/* ?precision at ios@@QBEHXZ */
@@ -1056,8 +1060,8 @@ int __thiscall ios_precision_set(ios *this, int prec)
DEFINE_THISCALL_WRAPPER(ios_precision_get, 4)
int __thiscall ios_precision_get(const ios *this)
{
- FIXME("(%p) stub\n", this);
- return 0;
+ TRACE("(%p)\n", this);
+ return this->precision;
}
/* ?pword at ios@@QBEAAPAXH at Z */
More information about the wine-cvs
mailing list