Don't use GetExceptionCode and GetExceptionInformation in exception filter functions.
commita82f4dd9b77d5d880b948ceef213fb36ece10461
authorRob Shearman <rob@codeweavers.com>
Fri, 15 Feb 2008 15:19:29 +0000 (15 15:19 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Sat, 16 Feb 2008 13:57:44 +0000 (16 14:57 +0100)
treec863d32e25dfc69e4ede652d300565676433bb6a
parent1d0bcb3b37177d7476540b727d4348c2f5c88431
Don't use GetExceptionCode and GetExceptionInformation in exception filter functions.

When using native compiler exceptions, it isn't valid to use
GetExceptionCode and GetExceptionInformation anywhere other than in the
filter or handler blocks since it would be very hard for the compiler to
work out where to retrieve the exception information from on the stack.

Therefore, remove the WINE_EXCEPTION_FILTER and WINE_FINALLY_FUNC macros
which enabled GetExceptionCode, GetExceptionInformation and
AbnormalTermination to be used inside of the functions they declared and
fix up all callers to access the information directly.
dlls/kernel32/console.c
dlls/ole32/moniker.c
dlls/rpcrt4/cstub.c
dlls/rpcrt4/rpc_server.c
dlls/winedos/dosvm.c
dlls/winedos/int31.c
include/wine/exception.h
programs/explorer/hal.c
programs/winedbg/dbg.y