[PATCH 1/2] msvcrt: Handle seh exception rethrowing in catch_function_nested_handler

Piotr Caban piotr at codeweavers.com
Wed Apr 30 06:50:25 CDT 2014


Fixes .Net30 installer (bug 36078).

This is a test code that is fixed by this patch:
void rethrow_seh_exception(void)
{
     try {
         RaiseException(0xc0000006, 0, 0, NULL);
     }catch(...) {
         printf("got exception\n");
         throw;
     }
}

void test_seh_exception(void)
{
     __try {
         rethrow_seh_exception();
     }__except(1) {
         printf("got exception2: %x\n", GetExceptionCode());
     }
}
...
test_seh_exception();
---
  dlls/msvcrt/except_i386.c | 23 ++++++++++++++++-------
  1 file changed, 16 insertions(+), 7 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msvcrt-Handle-seh-exception-rethrowing-in-catch_functi.txt
Type: text/x-patch
Size: 2818 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140430/d6137edc/attachment.bin>


More information about the wine-patches mailing list