msvcrt: Correctly set rounding mode in _ftol implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-12-18 12:10:28 +01:00 committed by Alexandre Julliard
parent 8ee96fec2b
commit 22edbd849a
1 changed files with 1 additions and 1 deletions

View File

@ -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"