Allow alternate SEH construct. Patch by Art Yerkes.
authorAlex Ionescu <aionescu@gmail.com>
Sun, 8 Aug 2004 18:26:47 +0000 (18:26 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 8 Aug 2004 18:26:47 +0000 (18:26 +0000)
svn path=/trunk/; revision=10420

reactos/include/pseh/framebased.h

index 94e348c..f1240de 100644 (file)
@@ -98,12 +98,14 @@ static __declspec(noreturn) void __stdcall _SEHCompilerSpecificHandler
 
 #define _SEH_TRY_FILTER_FINALLY(FILTER_, FINALLY_) \
  {                                                                             \
-  static const _SEHHandlers_t _SEHHandlers =                                   \
+  static _SEHHandlers_t _SEHHandlers =                                          \
   {                                                                            \
-   (FILTER_),                                                                  \
+   (NULL),                                                                     \
    _SEHCompilerSpecificHandler,                                                \
-   (FINALLY_)                                                                  \
+   (NULL)                                                                      \
   };                                                                           \
+  _SEHHandlers.SH_Filter = FILTER_;                                            \
+  _SEHHandlers.SH_Finally = FINALLY_;                                          \
                                                                                \
   _SEHFrame_t _SEHFrame;                                                       \
   volatile _SEHPortableFrame_t * _SEHPortableFrame;                            \