msvcr: Add __crtUnhandledException implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-03-16 17:44:52 +01:00 committed by Alexandre Julliard
parent 2f9941e224
commit a5031391f4
3 changed files with 12 additions and 2 deletions

View File

@ -930,7 +930,7 @@
@ stub -arch=i386,win64 __crtSetThreadStackGuarantee
@ cdecl __crtSetUnhandledExceptionFilter(ptr) MSVCR110__crtSetUnhandledExceptionFilter
@ cdecl -arch=i386,win64 __crtTerminateProcess(long) MSVCR110__crtTerminateProcess
@ stub -arch=i386,win64 __crtUnhandledException
@ cdecl -arch=i386,win64 __crtUnhandledException(ptr) MSVCRT__crtUnhandledException
@ cdecl __daylight() MSVCRT___p__daylight
@ cdecl __dllonexit(ptr ptr ptr)
@ cdecl __doserrno() MSVCRT___doserrno

View File

@ -920,7 +920,7 @@
@ cdecl __crtSetUnhandledExceptionFilter(ptr) MSVCR110__crtSetUnhandledExceptionFilter
@ cdecl -arch=i386,win64 __crtTerminateProcess(long) MSVCR110__crtTerminateProcess
@ stub __crtSleep
@ stub -arch=i386,win64 __crtUnhandledException
@ cdecl -arch=i386,win64 __crtUnhandledException(ptr) MSVCRT__crtUnhandledException
@ cdecl __daylight() MSVCRT___p__daylight
@ cdecl __dllonexit(ptr ptr ptr)
@ cdecl __doserrno() MSVCRT___doserrno

View File

@ -532,3 +532,13 @@ void CDECL MSVCRT__crt_debugger_hook(int reserved)
{
WARN("(%x)\n", reserved);
}
/*********************************************************************
* __crtUnhandledException (MSVCR110.@)
*/
LONG CDECL MSVCRT__crtUnhandledException(EXCEPTION_POINTERS *ep)
{
TRACE("(%p)\n", ep);
SetUnhandledExceptionFilter(NULL);
return UnhandledExceptionFilter(ep);
}