bpo-39184: Fix incorrect return value (GH-18580)

https://bugs.python.org/issue39184



Automerge-Triggered-By: @zooba
This commit is contained in:
Steve Dower 2020-02-20 22:24:44 +00:00 committed by GitHub
parent 1246d89203
commit 6c444d0dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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