the value of esp was not properly saved
__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 这个是指向一个函数的地址,哪位大神可以帮我看看是什么问题吗?