用MFC做植物大战僵尸修改器时遇到了一个问题
每次运行勾选按钮后游戏就卡死然后闪退,请问是哪里出了问题?void CMFCCHraterDlg::OnBnClickedCheck1()
{
LPVOID address = (LPVOID)0x0053130f;//僵尸扣血的代码地址 0053130F 2B7C24 20 sub edi,dword ptr ss:
DWORD killValue;//僵尸血量代码
if (m_bnKill.GetCheck())
{
killValue = 0x2bff9090;//将dword ptr ss: 修改为 edi
WriteProcessMemory(gameprocess_ID, (LPVOID)address, &killValue, 4, NULL);//写入内存
}
else
{
killValue = 0x2b7c2420;//将edi 修改为 将dword ptr ss:
WriteProcessMemory(gameprocess_ID, (LPVOID)address, &killValue, 4, NULL);//写入内存
}
} @liuzhengyuan 来吧
页:
[1]