fixes for 64 bit
This commit is contained in:
parent
e06b8f27c8
commit
7353a95a7e
@ -66,7 +66,7 @@ HookParam ParseRCode(QString RCode)
|
|||||||
RCode.remove(0, 1);
|
RCode.remove(0, 1);
|
||||||
QRegExp address("[\\dA-F]+$");
|
QRegExp address("[\\dA-F]+$");
|
||||||
if (address.indexIn(RCode) == -1) return {};
|
if (address.indexIn(RCode) == -1) return {};
|
||||||
hp.address = address.cap(0).toInt(nullptr, 16);
|
hp.address = address.cap(0).toULongLong(nullptr, 16);
|
||||||
return hp;
|
return hp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ namespace Host
|
|||||||
MutexLocker locker(pr.hookman_mutex);
|
MutexLocker locker(pr.hookman_mutex);
|
||||||
const Hook* hooks = (const Hook*)pr.hookman_map;
|
const Hook* hooks = (const Hook*)pr.hookman_map;
|
||||||
for (int i = 0; i < MAX_HOOK; ++i)
|
for (int i = 0; i < MAX_HOOK; ++i)
|
||||||
if (hooks[i].Address() == addr)
|
if ((DWORD)hooks[i].Address() == addr)
|
||||||
ret = hooks[i].hp;
|
ret = hooks[i].hp;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -172,7 +172,7 @@ namespace Host
|
|||||||
MutexLocker locker(pr.hookman_mutex);
|
MutexLocker locker(pr.hookman_mutex);
|
||||||
const Hook* hooks = (const Hook*)pr.hookman_map;
|
const Hook* hooks = (const Hook*)pr.hookman_map;
|
||||||
for (int i = 0; i < MAX_HOOK; ++i)
|
for (int i = 0; i < MAX_HOOK; ++i)
|
||||||
if (hooks[i].Address() == addr)
|
if ((DWORD)hooks[i].Address() == addr)
|
||||||
{
|
{
|
||||||
buffer.resize(hooks[i].NameLength());
|
buffer.resize(hooks[i].NameLength());
|
||||||
ReadProcessMemory(pr.process_handle, hooks[i].Name(), &buffer[0], hooks[i].NameLength(), nullptr);
|
ReadProcessMemory(pr.process_handle, hooks[i].Name(), &buffer[0], hooks[i].NameLength(), nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user