aboutsummaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-02-20 22:24:44 +0000
committerGitHub <noreply@github.com>2020-02-20 14:24:43 -0800
commit6c444d0dab8f06cf304263b34beb299101cef3de (patch)
tree063da19bcc86185bec3760a1f5f6d95129740f1e /PC
parentUse the new recommended number of repetitions in the refleak tests. (#18569) (diff)
downloadcpython-6c444d0dab8f06cf304263b34beb299101cef3de.tar.gz
cpython-6c444d0dab8f06cf304263b34beb299101cef3de.tar.bz2
cpython-6c444d0dab8f06cf304263b34beb299101cef3de.zip
bpo-39184: Fix incorrect return value (GH-18580)
https://bugs.python.org/issue39184 Automerge-Triggered-By: @zooba
Diffstat (limited to 'PC')
-rw-r--r--PC/msvcrtmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
index 5c06ec2621e..faceb03fba3 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