mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Add missing return statement in an error condition.
This commit is contained in:
parent
b05dc00fb7
commit
ae509520de
1 changed files with 1 additions and 1 deletions
|
@ -4095,7 +4095,7 @@ win32_kill(PyObject *self, PyObject *args)
|
|||
if (sig == CTRL_C_EVENT || sig == CTRL_BREAK_EVENT) {
|
||||
if (GenerateConsoleCtrlEvent(sig, pid) == 0) {
|
||||
err = GetLastError();
|
||||
PyErr_SetFromWindowsErr(err);
|
||||
return PyErr_SetFromWindowsErr(err);
|
||||
}
|
||||
else
|
||||
Py_RETURN_NONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue