Commit 22edbd84 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Correctly set rounding mode in _ftol implementation.

parent 8ee96fec
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment