Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
530e7650
Commit
530e7650
authored
Sep 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Exception filters should return LONG, not DWORD.
Also move UnhandledExceptionFilter definitions to winbase.h since they are there in the latest SDK.
parent
f6fecda8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
11 deletions
+10
-11
except.c
dlls/kernel32/except.c
+2
-2
thread.c
dlls/ntdll/thread.c
+1
-1
winbase.h
include/winbase.h
+5
-0
exception.h
include/wine/exception.h
+2
-2
winnt.h
include/winnt.h
+0
-6
No files found.
dlls/kernel32/except.c
View file @
530e7650
...
...
@@ -440,7 +440,7 @@ inline static BOOL check_no_exec( void *addr )
/*******************************************************************
* UnhandledExceptionFilter (KERNEL32.@)
*/
DWORD
WINAPI
UnhandledExceptionFilter
(
PEXCEPTION_POINTERS
epointers
)
LONG
WINAPI
UnhandledExceptionFilter
(
PEXCEPTION_POINTERS
epointers
)
{
const
EXCEPTION_RECORD
*
rec
=
epointers
->
ExceptionRecord
;
...
...
@@ -469,7 +469,7 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers)
if
(
top_filter
)
{
DWORD
ret
=
top_filter
(
epointers
);
LONG
ret
=
top_filter
(
epointers
);
if
(
ret
!=
EXCEPTION_CONTINUE_SEARCH
)
return
ret
;
}
...
...
dlls/ntdll/thread.c
View file @
530e7650
...
...
@@ -302,7 +302,7 @@ HANDLE thread_init(void)
return
exe_file
;
}
typedef
U
LONG
(
WINAPI
*
PUNHANDLED_EXCEPTION_FILTER
)(
PEXCEPTION_POINTERS
);
typedef
LONG
(
WINAPI
*
PUNHANDLED_EXCEPTION_FILTER
)(
PEXCEPTION_POINTERS
);
static
PUNHANDLED_EXCEPTION_FILTER
get_unhandled_exception_filter
(
void
)
{
static
PUNHANDLED_EXCEPTION_FILTER
unhandled_exception_filter
;
...
...
include/winbase.h
View file @
530e7650
...
...
@@ -131,6 +131,9 @@ typedef PCONTEXT LPCONTEXT;
typedef
PEXCEPTION_RECORD
LPEXCEPTION_RECORD
;
typedef
PEXCEPTION_POINTERS
LPEXCEPTION_POINTERS
;
typedef
LONG
(
CALLBACK
*
PTOP_LEVEL_EXCEPTION_FILTER
)(
PEXCEPTION_POINTERS
);
typedef
PTOP_LEVEL_EXCEPTION_FILTER
LPTOP_LEVEL_EXCEPTION_FILTER
;
#define OFS_MAXPATHNAME 128
typedef
struct
_OFSTRUCT
{
...
...
@@ -1978,6 +1981,7 @@ BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
BOOL
WINAPI
SetThreadToken
(
PHANDLE
,
HANDLE
);
BOOL
WINAPI
SetTimeZoneInformation
(
const
TIME_ZONE_INFORMATION
*
);
BOOL
WINAPI
SetTokenInformation
(
HANDLE
,
TOKEN_INFORMATION_CLASS
,
LPVOID
,
DWORD
);
LPTOP_LEVEL_EXCEPTION_FILTER
WINAPI
SetUnhandledExceptionFilter
(
LPTOP_LEVEL_EXCEPTION_FILTER
);
BOOL
WINAPI
SetVolumeLabelA
(
LPCSTR
,
LPCSTR
);
BOOL
WINAPI
SetVolumeLabelW
(
LPCWSTR
,
LPCWSTR
);
#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
...
...
@@ -2005,6 +2009,7 @@ BOOL WINAPI TransactNamedPipe(HANDLE,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LP
BOOL
WINAPI
TransmitCommChar
(
HANDLE
,
CHAR
);
BOOL
WINAPI
TryEnterCriticalSection
(
CRITICAL_SECTION
*
lpCrit
);
BOOL
WINAPI
TzSpecificLocalTimeToSystemTime
(
LPTIME_ZONE_INFORMATION
,
LPSYSTEMTIME
,
LPSYSTEMTIME
);
LONG
WINAPI
UnhandledExceptionFilter
(
PEXCEPTION_POINTERS
);
BOOL
WINAPI
UnlockFile
(
HANDLE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
);
BOOL
WINAPI
UnlockFileEx
(
HANDLE
,
DWORD
,
DWORD
,
DWORD
,
LPOVERLAPPED
);
#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
...
...
include/wine/exception.h
View file @
530e7650
...
...
@@ -120,13 +120,13 @@
} while (0);
typedef
DWORD
(
CALLBACK
*
__WINE_FILTER
)(
PEXCEPTION_POINTERS
);
typedef
LONG
(
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_EXCEPTION_FILTER(func)
LONG
WINAPI func( EXCEPTION_POINTERS *__eptr )
#define WINE_FINALLY_FUNC(func) void WINAPI func( BOOL __normal )
#define GetExceptionInformation() (__eptr)
...
...
include/winnt.h
View file @
530e7650
...
...
@@ -1855,12 +1855,6 @@ typedef struct _EXCEPTION_REGISTRATION_RECORD
*/
typedef
LONG
(
CALLBACK
*
PVECTORED_EXCEPTION_HANDLER
)(
PEXCEPTION_POINTERS
ExceptionInfo
);
typedef
LONG
(
CALLBACK
*
PTOP_LEVEL_EXCEPTION_FILTER
)(
PEXCEPTION_POINTERS
ExceptionInfo
);
typedef
PTOP_LEVEL_EXCEPTION_FILTER
LPTOP_LEVEL_EXCEPTION_FILTER
;
DWORD
WINAPI
UnhandledExceptionFilter
(
PEXCEPTION_POINTERS
epointers
);
LPTOP_LEVEL_EXCEPTION_FILTER
WINAPI
SetUnhandledExceptionFilter
(
LPTOP_LEVEL_EXCEPTION_FILTER
filter
);
typedef
struct
_NT_TIB
{
...
...
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