bpo-39184: Fix incorrect return value in `msvcrt_get_osfhandle_impl`
This commit is contained in:
parent
daa0fe03a5
commit
2f5fcc42ca
|
@ -210,7 +210,7 @@ msvcrt_get_osfhandle_impl(PyObject *module, int fd)
|
|||
intptr_t handle = -1;
|
||||
|
||||
if (PySys_Audit("msvcrt.get_osfhandle", "(i)", fd) < 0) {
|
||||
return NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
_Py_BEGIN_SUPPRESS_IPH
|
||||
|
|
Loading…
Reference in New Issue