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:
IOhannes m zmölnig 2015-09-16 08:38:59 +00:00
parent 83fb4d4268
commit e27a36e4f7

View file

@ -1094,8 +1094,9 @@ static void comport_tick(t_comport *x)
}
else
{
err = -1;
whicherr = GetLastError();
if (whicherr != ERROR_IO_PENDING)
err = -1;
}
CloseHandle(osReader.hEvent);
#else