Removing stack padding. Still broken even with it.

This commit is contained in:
Ben Vanik 2014-01-28 23:22:10 -08:00
parent 949b1a2220
commit 0ec8e32861
1 changed files with 0 additions and 2 deletions

View File

@ -64,12 +64,10 @@ void MovMem64(X64Emitter& e, RegExp& addr, uint64_t v) {
}
void CallNative(X64Emitter& e, void* target) {
e.sub(e.rsp, 0x18);
e.mov(e.rax, (uint64_t)target);
e.call(e.rax);
e.mov(e.rcx, e.qword[e.rsp + 0]);
e.mov(e.rdx, e.qword[e.rcx + 8]); // membase
e.add(e.rsp, 0x18);
}
// Sets EFLAGs with zf for the given value.