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
6560c48e
Commit
6560c48e
authored
May 19, 2005
by
Juan Lang
Committed by
Alexandre Julliard
May 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement _XcptFilter using signal handlers, and add a couple traces.
parent
84259840
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
except.c
dlls/msvcrt/except.c
+15
-9
No files found.
dlls/msvcrt/except.c
View file @
6560c48e
...
...
@@ -97,15 +97,6 @@ static DWORD MSVCRT_nested_handler(PEXCEPTION_RECORD rec,
/*********************************************************************
* _XcptFilter (MSVCRT.@)
*/
int
_XcptFilter
(
int
ex
,
PEXCEPTION_POINTERS
ptr
)
{
FIXME
(
"(%d,%p)semi-stub
\n
"
,
ex
,
ptr
);
return
UnhandledExceptionFilter
(
ptr
);
}
/*********************************************************************
* _EH_prolog (MSVCRT.@)
*/
#ifdef __i386__
...
...
@@ -200,6 +191,7 @@ int _except_handler3(PEXCEPTION_RECORD rec,
{
/* Unwinding the current frame */
_local_unwind2
(
frame
,
TRYLEVEL_END
);
TRACE
(
"unwound current frame, returning ExceptionContinueSearch
\n
"
);
return
ExceptionContinueSearch
;
}
else
...
...
@@ -249,6 +241,7 @@ int _except_handler3(PEXCEPTION_RECORD rec,
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
,
rec
->
ExceptionAddress
,
frame
->
handler
,
context
,
dispatcher
);
#endif
TRACE
(
"reached TRYLEVEL_END, returning ExceptionContinueSearch
\n
"
);
return
ExceptionContinueSearch
;
}
...
...
@@ -428,6 +421,9 @@ static LONG WINAPI msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
{
LONG
ret
=
EXCEPTION_CONTINUE_SEARCH
;
if
(
!
except
||
!
except
->
ExceptionRecord
)
return
EXCEPTION_CONTINUE_SEARCH
;
switch
(
except
->
ExceptionRecord
->
ExceptionCode
)
{
case
EXCEPTION_ACCESS_VIOLATION
:
...
...
@@ -528,3 +524,13 @@ __sighandler_t MSVCRT_signal(int sig, __sighandler_t func)
}
return
ret
;
}
/*********************************************************************
* _XcptFilter (MSVCRT.@)
*/
int
_XcptFilter
(
NTSTATUS
ex
,
PEXCEPTION_POINTERS
ptr
)
{
TRACE
(
"(%ld,%p)
\n
"
,
ex
,
ptr
);
/* I assume ptr->ExceptionRecord->ExceptionCode is the same as ex */
return
msvcrt_exception_filter
(
ptr
);
}
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