From 33486bb4d7abe54f99e1d9f75bc5926a11e80aa0 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 20 Jun 2011 13:34:19 +0000 Subject: [PATCH] [CRT] Fix call_ebp_func, spotted by Thomas Faber svn path=/trunk/; revision=52384 --- reactos/lib/sdk/crt/except/cppexcept.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/lib/sdk/crt/except/cppexcept.c b/reactos/lib/sdk/crt/except/cppexcept.c index 6a1907d043c..99f6a3cfbde 100644 --- a/reactos/lib/sdk/crt/except/cppexcept.c +++ b/reactos/lib/sdk/crt/except/cppexcept.c @@ -50,10 +50,11 @@ static inline void *call_ebp_func( void *func, void *_ebp ) #ifdef _MSC_VER __asm { + mov eax, func push ebx push ebp mov ebp, _ebp - call func + call eax pop ebp pop ebx mov result, eax