ntdll: Avoid resetting x87 FPU state when saving context.
commitc6cd92bedda4296ce3e666e28c470a5c4b618fee
authorPaul Gofman <gofmanp@gmail.com>
Mon, 4 Mar 2019 13:05:16 +0000 (4 16:05 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 4 Mar 2019 13:49:51 +0000 (4 14:49 +0100)
tree819c2a47564a7f023e59337c3ddae496c13c258e
parentfddea78ac1ce2c7d8b34cd5bd17001e6aea304ef
ntdll: Avoid resetting x87 FPU state when saving context.

'FNSAVE' x87 instruction resets the FPU state to default values
(like FINIT). This results in FPU state reset to default in any
ntdll call which is getting x87 FPU state, e. g. obtaining context
or raising an exception.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ntdll/signal_i386.c
dlls/ntdll/tests/exception.c