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
324d86a3
Commit
324d86a3
authored
Dec 16, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exception handling: Added a magic __EXCEPT_PAGE_FAULT macro to make it
easier to handle the common case of trapping page faults.
parent
db7920bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
exception.c
dlls/ntdll/exception.c
+7
-1
exception.h
include/wine/exception.h
+4
-0
No files found.
dlls/ntdll/exception.c
View file @
324d86a3
...
...
@@ -546,7 +546,13 @@ DWORD __wine_exception_handler( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION
if
(
record
->
ExceptionFlags
&
(
EH_UNWINDING
|
EH_EXIT_UNWIND
|
EH_NESTED_CALL
))
return
ExceptionContinueSearch
;
if
(
wine_frame
->
u
.
filter
)
if
(
wine_frame
->
u
.
filter
==
(
void
*
)
1
)
/* special hack for page faults */
{
if
(
record
->
ExceptionCode
!=
EXCEPTION_ACCESS_VIOLATION
)
return
ExceptionContinueSearch
;
}
else
if
(
wine_frame
->
u
.
filter
)
{
EXCEPTION_POINTERS
ptrs
;
ptrs
.
ExceptionRecord
=
record
;
...
...
include/wine/exception.h
View file @
324d86a3
...
...
@@ -71,6 +71,7 @@
#define __EXCEPT(func) __except((func)(GetExceptionInformation()))
#define __FINALLY(func) __finally { (func)(!AbnormalTermination()); }
#define __ENDTRY
/*nothing*/
#define __EXCEPT_PAGE_FAULT __except(GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION)
#else
/* USE_COMPILER_EXCEPTIONS */
...
...
@@ -122,6 +123,9 @@
typedef
DWORD
(
CALLBACK
*
__WINE_FILTER
)(
PEXCEPTION_POINTERS
);
typedef
void
(
CALLBACK
*
__WINE_FINALLY
)(
BOOL
);
/* convenience handler for page fault exceptions */
#define __EXCEPT_PAGE_FAULT __EXCEPT( (__WINE_FILTER)1 )
#define WINE_EXCEPTION_FILTER(func) DWORD WINAPI func( EXCEPTION_POINTERS *__eptr )
#define WINE_FINALLY_FUNC(func) void WINAPI func( BOOL __normal )
...
...
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