Commit e5348e27 authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

Added binary compatible __EH_prolog.

parent 558b6607
......@@ -45,14 +45,6 @@ typedef struct _EXCEPTION_REGISTRATION
} EXCEPTION_REGISTRATION;
/*********************************************************************
* _EH_prolog (MSVCRT.@)
*/
void __cdecl MSVCRT__EH_prolog(void)
{
FIXME("stub\n");
}
/*********************************************************************
* _XcptFilter (MSVCRT.@)
*/
int __cdecl MSVCRT__XcptFilter(int ex, PEXCEPTION_POINTERS ptr)
......@@ -61,6 +53,23 @@ int __cdecl MSVCRT__XcptFilter(int ex, PEXCEPTION_POINTERS ptr)
return UnhandledExceptionFilter(ptr);
}
/*********************************************************************
* _EH_prolog (MSVCRT.@)
*/
#ifdef __i386__
/* Provided for VC++ binary compatability only */
__ASM_GLOBAL_FUNC(MSVCRT__EH_prolog,
"pushl $0xff\n\t"
"pushl %eax\n\t"
"pushl %fs:0\n\t"
"movl %esp, %fs:0\n\t"
"movl 12(%esp), %eax\n\t"
"movl %ebp, 12(%esp)\n\t"
"leal 12(%esp), %ebp\n\t"
"pushl %eax\n\t"
"ret");
#endif
/*******************************************************************
* _global_unwind2 (MSVCRT.@)
*/
......
......@@ -74,7 +74,7 @@ debug_channels (msvcrt)
@ cdecl -noimport _CItan() MSVCRT__CItan
@ cdecl -noimport _CItanh() MSVCRT__CItanh
@ stub _CxxThrowException
@ cdecl _EH_prolog() MSVCRT__EH_prolog # FIXME: crashes relay debugging
@ cdecl -i386 -norelay _EH_prolog() MSVCRT__EH_prolog
@ cdecl _Getdays() MSVCRT__Getdays
@ cdecl _Getmonths() MSVCRT__Getmonths
@ cdecl _Getnames() MSVCRT__Getnames
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment