Piotr Caban : msvcrt: Correctly set rounding mode in _ftol implementation.

Alexandre Julliard julliard at winehq.org
Mon Dec 18 14:17:02 CST 2017


Module: wine
Branch: master
Commit: 22edbd849ada33e8037f6f2b7fde75b1617f3f78
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=22edbd849ada33e8037f6f2b7fde75b1617f3f78

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Dec 18 12:10:28 2017 +0100

msvcrt: Correctly set rounding mode in _ftol implementation.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/math.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index 0627bfa..7fb4666 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -693,7 +693,7 @@ __ASM_GLOBAL_FUNC(MSVCRT__ftol,
         "subl    $12, %esp\n\t"     /* sizeof(LONGLONG) + 2*sizeof(WORD) */
         "fnstcw  (%esp)\n\t"
         "mov     (%esp), %ax\n\t"
-        "or      $0xc, %ax\n\t"
+        "or      $0xc00, %ax\n\t"
         "mov     %ax, 2(%esp)\n\t"
         "fldcw   2(%esp)\n\t"
         "fistpq  4(%esp)\n\t"




More information about the wine-cvs mailing list