bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (GH-8721) (#25811)

Embedded nulls would cause a ValueError to be raised. Thanks go to Eryk Sun for their analysis.

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
(cherry picked from commit 73766b0341674f3920f4ea86a6f8288b801960f9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
3 files changed