MDEV-26538 Incorrect error condition check for ReadFile (named pipes)
This commit is contained in:
parent
5ae5453291
commit
4ffcfe7c2a
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user