注册 登录
编程论坛 汇编论坛

the value of esp was not properly saved

baiqilinux 发布于 2017-09-16 11:19, 1834 次点击
__declspec(naked) HRESULT WINAPI OTest(LPDIRECT3DDEVICE9 m_pDevice, D3DPRIMITIVETYPE type, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{
    __asm
    {
        mov edi, edi
        push ebp
        mov ebp, esp
        mov eax, jmpto
        jmp eax
    }
}


当我调用这个函数的时候会提示the value of esp was not properly saved .jmpto 这个是指向一个函数的地址,哪位大神可以帮我看看是什么问题吗?
0 回复
1