summaryrefslogtreecommitdiff
path: root/overlapped.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlapped.c')
-rw-r--r--overlapped.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/overlapped.c b/overlapped.c
index 8fe2e24..4661152 100644
--- a/overlapped.c
+++ b/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);