diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-02-20 22:44:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 22:44:47 (GMT) |
commit | d0a464e31ac67685ef8ad35ecd993f17dfd6ab35 (patch) | |
tree | 0d1d416785ac30bca3088e59ae3f65f5093ef18c /PC | |
parent | 9c87fbe54e1c797e3c690c6426bdf5e79c457cf1 (diff) | |
download | cpython-d0a464e31ac67685ef8ad35ecd993f17dfd6ab35.zip cpython-d0a464e31ac67685ef8ad35ecd993f17dfd6ab35.tar.gz cpython-d0a464e31ac67685ef8ad35ecd993f17dfd6ab35.tar.bz2 |
bpo-39184: Fix incorrect return value (GH-18580)
https://bugs.python.org/issue39184
Automerge-Triggered-By: @zooba
(cherry picked from commit 6c444d0dab8f06cf304263b34beb299101cef3de)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'PC')
-rw-r--r-- | PC/msvcrtmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 5c06ec2..faceb03 100644 --- a/PC/msvcrtmodule.c +++ b/PC/msvcrtmodule.c @@ -180,7 +180,7 @@ msvcrt_open_osfhandle_impl(PyObject *module, void *handle, int flags) int fd; if (PySys_Audit("msvcrt.open_osfhandle", "Ki", handle, flags) < 0) { - return NULL; + return -1; } _Py_BEGIN_SUPPRESS_IPH |