Commit 3e2b84d295531720917bf46afc532fc6d877e3ec

Ole André Vadla Ravnås 2014-04-12T01:04:04

Fix Windows regression Introduced by b5fed601948237037513a9b7f967c8fc6c9ff1f6.

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;