Skip to content

Commit 42b2ebf

Browse files
committed
Fix evalCall stack align offset
1 parent 5e3f98c commit 42b2ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hld/Eval.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class Eval {
357357
var prevEsp = api.readRegister(currentThread, Esp);
358358
// align stack
359359
var stackValue = prevEsp;
360-
stackValue = stackValue.offset(-100);
360+
stackValue = stackValue.offset(-0xFF);
361361
stackValue = stackValue.offset((-stackValue.toInt() & 0xFF));
362362
api.writeRegister(currentThread, Esp, stackValue);
363363
// set registers

0 commit comments

Comments
 (0)