From fb0d40d346cbce45d8fcdd95376780371c3f5f85 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Thu, 20 Feb 2020 22:05:15 +0000 Subject: [PATCH] bpo-39184: Fix incorrect return value --- PC/msvcrtmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 5c06ec2621ea6c..faceb03fba39d1 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