summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-12-21 18:34:57 +0000
committerChristopher Faylor <me@cgf.cx>2011-12-21 18:34:57 +0000
commit8176232ddc752350e6d274947ad7eabb6b502276 (patch)
tree01ef7a0cdb3856c23fdd95332037fa29c5ed55dd /winsup/cygwin/fhandler.cc
parentf500a700b15d6a55202cfac4cc05039ba23e9361 (diff)
downloadcygnal-8176232ddc752350e6d274947ad7eabb6b502276.tar.gz
cygnal-8176232ddc752350e6d274947ad7eabb6b502276.tar.bz2
cygnal-8176232ddc752350e6d274947ad7eabb6b502276.zip
* 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;