Skip to content

Commit

Permalink
MDEV-26538 Incorrect error condition check for ReadFile (named pipes)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Sep 4, 2021
1 parent 5ae5453 commit 4ffcfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/threadpool_winsockets.cc
Expand Up @@ -201,7 +201,7 @@ DWORD win_aiosocket::begin_read()
else
{
/* Do async read (named pipe) */
if (ReadFile(m_handle, buf.buf, buf.len, 0, &m_overlapped))
if (!ReadFile(m_handle, buf.buf, buf.len, 0, &m_overlapped))
err= GetLastError();
}

Expand Down

0 comments on commit 4ffcfe7

Please sign in to comment.