ntdll: Don't set xstate in context if xstate features are not supported.
commit0fde203cac0ada6439f180ac9c0456f2e85bb786
authorPaul Gofman <pgofman@codeweavers.com>
Fri, 11 Dec 2020 13:06:37 +0000 (11 16:06 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 11 Dec 2020 20:47:15 +0000 (11 21:47 +0100)
tree39f1c085e0f6e31d6d997455c95909485f0e1dad
parent1647524ba08974d512c5d6d69f2ff10028bc1440
ntdll: Don't set xstate in context if xstate features are not supported.

Fixes a regression reproducible on CPUs without XSAVE support introduced
by 419abd49a1f816e5a869dbf4cc81114cd516138b.

The regression commit erroneously assumes that if XSAVE is not supported
then the host signal context won't have xsave data set up.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50271
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ntdll/unix/signal_i386.c
dlls/ntdll/unix/signal_x86_64.c