From: Piotr Caban Subject: [PATCH] msvcrt: Correctly set rounding mode in _ftol implementation Message-Id: Date: Mon, 18 Dec 2017 12:10:28 +0100 For bug 44168 (hopefully it will also fix bug 44170). Signed-off-by: Piotr Caban --- 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 0627bfa4b1..7fb4666bef 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"