[02/13] msvcirt: Implement ios::precision

Iván Matellanes matellanesivan at gmail.com
Fri Jul 17 09:36:27 CDT 2015


---
 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 */
-- 
2.1.4




More information about the wine-patches mailing list