Skip to content

Commit 6c444d0

Browse files
authored
bpo-39184: Fix incorrect return value (GH-18580)
https://bugs.python.org/issue39184 Automerge-Triggered-By: @zooba
1 parent 1246d89 commit 6c444d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PC/msvcrtmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ msvcrt_open_osfhandle_impl(PyObject *module, void *handle, int flags)
180180
int fd;
181181

182182
if (PySys_Audit("msvcrt.open_osfhandle", "Ki", handle, flags) < 0) {
183-
return NULL;
183+
return -1;
184184
}
185185

186186
_Py_BEGIN_SUPPRESS_IPH

0 commit comments

Comments
 (0)