Commit 6f819b49 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

msvcrt: Avoid using inline assembly in __ExceptionPtrDestroy().

parent e6e7976d
......@@ -1718,10 +1718,12 @@ void __cdecl __ExceptionPtrCreate(exception_ptr *ep)
}
#ifdef __i386__
static inline void call_dtor(const cxx_exception_type *type, void *func, void *object)
{
__asm__ __volatile__("call *%0" : : "m" (func), "c" (object) : "eax", "edx", "memory");
}
extern void call_dtor(const cxx_exception_type *type, void *func, void *object);
__ASM_GLOBAL_FUNC( call_dtor,
"movl 12(%esp),%ecx\n\t"
"call *8(%esp)\n\t"
"ret" );
#elif __x86_64__
static inline void call_dtor(const cxx_exception_type *type, unsigned int dtor, void *object)
{
......
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