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

This commit is contained in:
Vladislav Vaintroub 2021-09-04 18:52:10 +02:00
parent 5ae5453291
commit 4ffcfe7c2a

View File

@ -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();
}