bpo-39184: Fix incorrect return value (GH-18580)
https://bugs.python.org/issue39184
Automerge-Triggered-By: @zooba
(cherry picked from commit 6c444d0dab
)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
9c87fbe54e
commit
d0a464e31a
|
@ -180,7 +180,7 @@ msvcrt_open_osfhandle_impl(PyObject *module, void *handle, int flags)
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if (PySys_Audit("msvcrt.open_osfhandle", "Ki", handle, flags) < 0) {
|
if (PySys_Audit("msvcrt.open_osfhandle", "Ki", handle, flags) < 0) {
|
||||||
return NULL;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
_Py_BEGIN_SUPPRESS_IPH
|
_Py_BEGIN_SUPPRESS_IPH
|
||||||
|
|
Loading…
Reference in New Issue