From e27a36e4f76b3d0d140a460eed9d77a0f6a6de9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 16 Sep 2015 08:38:59 +0000 Subject: comport@w32: if ReadFile returns ERROR_IO_PENDING, don't report an error svn path=/trunk/externals/iem/comport/; revision=17563 --- comport/comport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comport/comport.c b/comport/comport.c index f7d3a37..5634594 100644 --- a/comport/comport.c +++ b/comport/comport.c @@ -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 -- cgit v1.2.1