Issue #25182: Fix compilation on Windows

Restore also errno value before calling PyErr_SetFromErrno().
1 file changed