comport@w32: if ReadFile returns ERROR_IO_PENDING, don't report an error
svn path=/trunk/externals/iem/comport/; revision=17563
This commit is contained in:
parent
83fb4d4268
commit
e27a36e4f7
1 changed files with 2 additions and 1 deletions
|
|
@ -1094,8 +1094,9 @@ static void comport_tick(t_comport *x)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
err = -1;
|
|
||||||
whicherr = GetLastError();
|
whicherr = GetLastError();
|
||||||
|
if (whicherr != ERROR_IO_PENDING)
|
||||||
|
err = -1;
|
||||||
}
|
}
|
||||||
CloseHandle(osReader.hEvent);
|
CloseHandle(osReader.hEvent);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue