mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:22:58 +00:00
[CRT]
Fix call_ebp_func, spotted by Thomas Faber svn path=/trunk/; revision=52384
This commit is contained in:
parent
d01040f370
commit
33486bb4d7
1 changed files with 2 additions and 1 deletions
|
@ -50,10 +50,11 @@ static inline void *call_ebp_func( void *func, void *_ebp )
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
|
mov eax, func
|
||||||
push ebx
|
push ebx
|
||||||
push ebp
|
push ebp
|
||||||
mov ebp, _ebp
|
mov ebp, _ebp
|
||||||
call func
|
call eax
|
||||||
pop ebp
|
pop ebp
|
||||||
pop ebx
|
pop ebx
|
||||||
mov result, eax
|
mov result, eax
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue