CVS: winex/include/wine exception.h,1.4,1.5
[email protected] 12 Sep 2007 12:16:15 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/include/wine exception.h,1.4,1.5Update of /var/lib/cvsd/cvsroot/winex/include/wine
In directory agravaine:/tmp/cvs-serv7059/include/wine
Modified Files:
exception.h
Log Message:
- added the __EXCEPT_PAGE_FAULT macro from the platformSDK (and winehq).
Index: exception.h
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/include/wine/exception.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- exception.h 17 Feb 2003 03:09:37 -0000 1.4
+++ exception.h 12 Sep 2007 12:16:13 -0000 1.5
@@ -57,6 +57,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 */
@@ -104,6 +105,8 @@
typedef DWORD (CALLBACK *__WINE_FILTER)(PEXCEPTION_POINTERS);
typedef void (CALLBACK *__WINE_FINALLY)(BOOL);
+#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 )