◐ Shell
clean mode source ↗

Fixed bpo-29565: Corrected ctypes passing of large structs by value o… by vsajip · Pull Request #220 · python/cpython

…n Windows AMD64. (#168)

* Fixed bpo-29565: Corrected ctypes passing of large structs by value.

Added code and test to check that when a structure passed by value
is large enough to need to be passed by reference, a copy of the
original structure is passed. The callee updates the passed-in value,
and the test verifies that the caller's copy is unchanged. A similar
change was also added to the test added for bpo-20160 (that test was
passing, but the changes should guard against regressions).

* Reverted unintended whitespace changes.

(cherry picked from commit a86339b)

@vsajip

@vsajip

akruis added a commit to akruis/cpython that referenced this pull request

Aug 4, 2019
Add a test function to provoke switching errors, add test cases and
fix the error handling.

akruis added a commit to akruis/cpython that referenced this pull request

Oct 25, 2019
Add a test function to provoke switching errors, add test cases and
fix the error handling.

(cherry picked from commit 8ae5fe5)

akruis added a commit to akruis/cpython that referenced this pull request

May 27, 2021
Add a test function to provoke switching errors, add test cases and
fix the error handling.

(cherry picked from commit 8ae5fe5)

ahgamut pushed a commit to ahgamut/cpython that referenced this pull request

Aug 25, 2021
Add a test function to provoke switching errors, add test cases and
fix the error handling.

(cherry picked from commit 8ae5fe5)

jaraco pushed a commit that referenced this pull request

Dec 2, 2022

jaraco added a commit to jaraco/cpython that referenced this pull request

Feb 17, 2023
tests: add test for contents()