Skip to content

Commit d0a464e

Browse files
bpo-39184: Fix incorrect return value (GH-18580)
https://bugs.python.org/issue39184 Automerge-Triggered-By: @zooba (cherry picked from commit 6c444d0) Co-authored-by: Steve Dower <steve.dower@python.org>
1 parent 9c87fbe commit d0a464e

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)