Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-12-21 22:34:57 +0400
committerChristopher Faylor <me@cgf.cx>2011-12-21 22:34:57 +0400
commit8176232ddc752350e6d274947ad7eabb6b502276 (patch)
tree01ef7a0cdb3856c23fdd95332037fa29c5ed55dd /winsup/cygwin/fhandler.cc
parentf500a700b15d6a55202cfac4cc05039ba23e9361 (diff)
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use correct value in
switch statement.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index a93b45436..5fade14e5 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1931,7 +1931,7 @@ fhandler_base_overlapped::wait_overlapped (bool inres, bool writing, DWORD *byte
BOOL wores;
if (isclosed ())
{
- switch (err)
+ switch (wfres)
{
case WAIT_OBJECT_0:
err = ERROR_INVALID_HANDLE;