bpo-39184: Fix incorrect return value in `msvcrt_get_osfhandle_impl`

This commit is contained in:
gousaiyang 2020-07-04 15:22:35 -07:00
parent daa0fe03a5
commit 2f5fcc42ca
1 changed files with 1 additions and 1 deletions

View File

@ -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