Commit 4ffcfe7c authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-26538 Incorrect error condition check for ReadFile (named pipes)

parent 5ae54532
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment