diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-09-16 08:38:59 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-09-16 08:38:59 +0000 |
commit | e27a36e4f76b3d0d140a460eed9d77a0f6a6de9c (patch) | |
tree | ef932fdaa5aaa6ba6292a644edc35efc35edc6a1 | |
parent | 83fb4d4268fbeb4a01a1a4aa6d458f520e7d23b5 (diff) |
comport@w32: if ReadFile returns ERROR_IO_PENDING, don't report an error
svn path=/trunk/externals/iem/comport/; revision=17563
-rw-r--r-- | comport/comport.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |