summaryrefslogtreecommitdiffstats
path: root/Modules/overlapped.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/overlapped.c')
-rw-r--r--Modules/overlapped.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/overlapped.c b/Modules/overlapped.c
index 8fe2e24..4661152 100644
--- a/Modules/overlapped.c
+++ b/Modules/overlapped.c
@@ -1117,10 +1117,10 @@ Overlapped_ConnectNamedPipe(OverlappedObject *self, PyObject *args)
switch (err) {
case ERROR_PIPE_CONNECTED:
mark_as_completed(&self->overlapped);
- Py_RETURN_NONE;
+ Py_RETURN_TRUE;
case ERROR_SUCCESS:
case ERROR_IO_PENDING:
- Py_RETURN_NONE;
+ Py_RETURN_FALSE;
default:
self->type = TYPE_NOT_STARTED;
return SetFromWindowsErr(err);