summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-07-21 20:14:11 +0200
committerArmin Rigo <arigo@tunes.org>2020-07-21 20:14:11 +0200
commit8cc7ea55cdac358b4520d12e86c5882ba4c00824 (patch)
tree3f3ec487d4fd673160ba175fcbb3fe3d5ee47541 /c
parent1a1e1e6ee5c4a7411a7ce8c319739ccab0eb4035 (diff)
downloadcffi-8cc7ea55cdac358b4520d12e86c5882ba4c00824.tar.gz
next fix, for win64
Diffstat (limited to 'c')
-rw-r--r--c/libffi_msvc/ffi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/c/libffi_msvc/ffi.c b/c/libffi_msvc/ffi.c
index dab2b50..8a56c87 100644
--- a/c/libffi_msvc/ffi.c
+++ b/c/libffi_msvc/ffi.c
@@ -342,6 +342,8 @@ ffi_closure_SYSV (ffi_closure *closure, char *argp)
result types except for floats; we have to 'mov xmm0, rax' in the
caller to correct this.
*/
+ if (rtype == FFI_TYPE_STRUCT)
+ return resp;
return *(void **)resp;
#endif
}