msvcrt: Register exception object before unwinding.
commit3a0b3c5bc89178d332dd1117348d8785975afc18
authorPiotr Caban <piotr@codeweavers.com>
Mon, 21 Mar 2016 18:16:06 +0000 (21 19:16 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 22 Mar 2016 03:20:31 +0000 (22 12:20 +0900)
treeec301f942e8afd8bce0ac4db7656f55b0ba2b24e
parentfdcdbf306a7339c486c69346bcff0e6d5e0e58a9
msvcrt: Register exception object before unwinding.

Thrown object was incorrectly freed in following situation:
try {
     try {
         throw obj;
     } catch(...) {
         throw;
     }
} catch(...) {
     //use object here
}

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcrt/except_i386.c