Commit 30b77c56f95c63ecd83399aafdbad7b07330f2fd

Anthony Green 2014-04-12T19:29:13

Merge pull request #117 from frida/fix/windows-regression Fix Windows regression

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/x86/ffi.c b/src/x86/ffi.c
index 72bed06..bcfc153 100644
--- a/src/x86/ffi.c
+++ b/src/x86/ffi.c
@@ -746,7 +746,7 @@ ffi_prep_raw_closure_loc (ffi_raw_closure* closure,
     }
   else if (cif->abi == FFI_THISCALL)
     {
-      FFI_INIT_TRAMPOLINE_RAW_THISCALL (&closure->tramp[0], &ffi_closure_raw_THISCALL, codeloc);
+      FFI_INIT_TRAMPOLINE_RAW_THISCALL (&closure->tramp[0], &ffi_closure_raw_THISCALL, codeloc, cif->bytes);
     }
 #endif
   closure->cif  = cif;