As you can see, the second parameter is PWSTR and not PCWSTR.
Next, into the code, GetThreadDescription() is called with the right types for the parameters and MSVC seems to tolerate this, but a more strict compiler like GCC does not.
However, this is very simple to fix with a tiny patch.
Activity
pythongh-152903: Change PCWSTR to PWSTR in GetThreadDescription() typ…
pythongh-152903: Change PCWSTR to PWSTR in GetThreadDescription() typ…
gh-152903: Change PCWSTR to PWSTR in GetThreadDescription() typedef (#…
[3.15] gh-152903: Change PCWSTR to PWSTR in GetThreadDescription() ty…
[3.14] gh-152903: Change PCWSTR to PWSTR in GetThreadDescription() ty…