Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6da06c15
Commit
6da06c15
authored
Aug 20, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix floating point exception codes in Wow64 mode.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2736fabc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+5
-1
No files found.
dlls/ntdll/unix/signal_x86_64.c
View file @
6da06c15
...
...
@@ -2694,7 +2694,10 @@ static void fpe_handler( int signal, siginfo_t *siginfo, void *sigcontext )
break
;
case
FPE_FLTINV
:
default:
rec
.
ExceptionCode
=
EXCEPTION_FLT_INVALID_OPERATION
;
if
(
FPU_sig
(
ucontext
)
&&
FPU_sig
(
ucontext
)
->
StatusWord
&
0x40
)
rec
.
ExceptionCode
=
EXCEPTION_FLT_STACK_CHECK
;
else
rec
.
ExceptionCode
=
EXCEPTION_FLT_INVALID_OPERATION
;
break
;
}
...
...
@@ -2703,6 +2706,7 @@ static void fpe_handler( int signal, siginfo_t *siginfo, void *sigcontext )
rec
.
NumberParameters
=
2
;
rec
.
ExceptionInformation
[
0
]
=
0
;
rec
.
ExceptionInformation
[
1
]
=
FPU_sig
(
ucontext
)
?
FPU_sig
(
ucontext
)
->
MxCsr
:
0
;
if
(
CS_sig
(
ucontext
)
!=
cs64_sel
)
rec
.
ExceptionCode
=
STATUS_FLOAT_MULTIPLE_TRAPS
;
}
setup_exception
(
sigcontext
,
&
rec
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment