x86: Fix typo in ffi_prep_go_closure Used the wrong register for THISCALL and FASTCALL.
diff --git a/src/x86/ffi.c b/src/x86/ffi.c
index 359a864..4c96c6d 100644
--- a/src/x86/ffi.c
+++ b/src/x86/ffi.c
@@ -527,7 +527,7 @@ ffi_prep_go_closure (ffi_go_closure* closure, ffi_cif* cif,
break;
case FFI_THISCALL:
case FFI_FASTCALL:
- dest = ffi_go_closure_ECX;
+ dest = ffi_go_closure_EAX;
break;
case FFI_STDCALL:
case FFI_PASCAL: