include: Exception filters should return LONG, not DWORD.
Also move UnhandledExceptionFilter definitions to winbase.h since they are there in the latest SDK.
This commit is contained in:
parent
f6fecda896
commit
530e765035
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ HANDLE thread_init(void)
|
|||
return exe_file;
|
||||
}
|
||||
|
||||
typedef ULONG (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;
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue