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
9f309b32
Commit
9f309b32
authored
Feb 08, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Reset a signal to DFL before it's used.
parent
1f5e5a2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
except.c
dlls/msvcrt/except.c
+21
-12
No files found.
dlls/msvcrt/except.c
View file @
9f309b32
...
...
@@ -429,6 +429,7 @@ static const struct
static
LONG
WINAPI
msvcrt_exception_filter
(
struct
_EXCEPTION_POINTERS
*
except
)
{
LONG
ret
=
EXCEPTION_CONTINUE_SEARCH
;
MSVCRT___sighandler_t
handler
;
if
(
!
except
||
!
except
->
ExceptionRecord
)
return
EXCEPTION_CONTINUE_SEARCH
;
...
...
@@ -436,10 +437,13 @@ static LONG WINAPI msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
switch
(
except
->
ExceptionRecord
->
ExceptionCode
)
{
case
EXCEPTION_ACCESS_VIOLATION
:
if
(
sighandlers
[
MSVCRT_SIGSEGV
]
)
if
(
(
handler
=
sighandlers
[
MSVCRT_SIGSEGV
])
!=
MSVCRT_SIG_DFL
)
{
if
(
sighandlers
[
MSVCRT_SIGSEGV
]
!=
MSVCRT_SIG_IGN
)
sighandlers
[
MSVCRT_SIGSEGV
](
MSVCRT_SIGSEGV
);
if
(
handler
!=
MSVCRT_SIG_IGN
)
{
sighandlers
[
MSVCRT_SIGSEGV
]
=
MSVCRT_SIG_DFL
;
handler
(
MSVCRT_SIGSEGV
);
}
ret
=
EXCEPTION_CONTINUE_EXECUTION
;
}
break
;
...
...
@@ -455,31 +459,36 @@ static LONG WINAPI msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
case
EXCEPTION_FLT_OVERFLOW
:
case
EXCEPTION_FLT_STACK_CHECK
:
case
EXCEPTION_FLT_UNDERFLOW
:
if
(
sighandlers
[
MSVCRT_SIGFPE
]
)
if
(
(
handler
=
sighandlers
[
MSVCRT_SIGFPE
])
!=
MSVCRT_SIG_DFL
)
{
if
(
sighandlers
[
MSVCRT_SIGFPE
]
!=
MSVCRT_SIG_IGN
)
if
(
handler
!=
MSVCRT_SIG_IGN
)
{
int
i
,
float_signal
=
_FPE_INVALID
;
float_handler
handler
=
(
float_handler
)
sighandlers
[
MSVCRT_SIGFPE
]
;
sighandlers
[
MSVCRT_SIGFPE
]
=
MSVCRT_SIG_DFL
;
for
(
i
=
0
;
i
<
sizeof
(
float_exception_map
)
/
sizeof
(
float_exception_map
[
0
]);
i
++
)
sizeof
(
float_exception_map
[
0
]);
i
++
)
{
if
(
float_exception_map
[
i
].
status
==
except
->
ExceptionRecord
->
ExceptionCode
)
except
->
ExceptionRecord
->
ExceptionCode
)
{
float_signal
=
float_exception_map
[
i
].
signal
;
break
;
}
handler
(
MSVCRT_SIGFPE
,
float_signal
);
}
((
float_handler
)
handler
)(
MSVCRT_SIGFPE
,
float_signal
);
}
ret
=
EXCEPTION_CONTINUE_EXECUTION
;
}
break
;
case
EXCEPTION_ILLEGAL_INSTRUCTION
:
if
(
sighandlers
[
MSVCRT_SIGILL
]
)
if
(
(
handler
=
sighandlers
[
MSVCRT_SIGILL
])
!=
MSVCRT_SIG_DFL
)
{
if
(
sighandlers
[
MSVCRT_SIGILL
]
!=
MSVCRT_SIG_IGN
)
sighandlers
[
MSVCRT_SIGILL
](
MSVCRT_SIGILL
);
if
(
handler
!=
MSVCRT_SIG_IGN
)
{
sighandlers
[
MSVCRT_SIGILL
]
=
MSVCRT_SIG_DFL
;
handler
(
MSVCRT_SIGILL
);
}
ret
=
EXCEPTION_CONTINUE_EXECUTION
;
}
break
;
...
...
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