summaryrefslogtreecommitdiff
path: root/sql/threadpool_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/threadpool_win.cc')
-rw-r--r--sql/threadpool_win.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/threadpool_win.cc b/sql/threadpool_win.cc
index bb961cdf9e1..c9d202bb4fc 100644
--- a/sql/threadpool_win.cc
+++ b/sql/threadpool_win.cc
@@ -185,9 +185,9 @@ int TP_connection_win::start_io()
int TP_connection_win::cancel_io()
{
- if (!CancelIoEx(sock.m_handle, &sock.m_overlapped))
- return GetLastError() == ERROR_NOT_FOUND ? 0 : -1;
- return 1;
+ if (CancelIoEx(sock.m_handle, &sock.m_overlapped))
+ return 0;
+ return GetLastError() == ERROR_NOT_FOUND ? 1 : -1;
}
/*