projects
/
platform
/
upstream
/
libffi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f8690a
)
Don't use 16 byte aligned stack for WIN32
author
Vitaly Budovski
<vbudovski@gmail.com>
Thu, 5 Sep 2013 02:05:06 +0000
(12:05 +1000)
committer
Vitaly Budovski
<vbudovski@gmail.com>
Thu, 5 Sep 2013 02:05:06 +0000
(12:05 +1000)
This fixes a crash when accessing __stdcall functions in Python ctypes.
src/x86/ffi.c
patch
|
blob
|
history
diff --git
a/src/x86/ffi.c
b/src/x86/ffi.c
index 0600414d458e9c0c9dd472a5a68053669a38f099..307cd19936c4b8ecb6b7dc9790d5e3e9ccb0e071 100644
(file)
--- a/
src/x86/ffi.c
+++ b/
src/x86/ffi.c
@@
-315,7
+315,9
@@
ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
cif->bytes += 4 * sizeof(ffi_arg);
#endif
+#ifndef X86_WIN32
cif->bytes = (cif->bytes + 15) & ~0xF;
+#endif
return FFI_OK;
}