diff options
author | Christopher Faylor <me@cgf.cx> | 2009-06-16 20:33:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-06-16 20:33:45 +0000 |
commit | 6a451dce26d8e5369c79f455f105e0c46ddc8bcb (patch) | |
tree | aecbbb47241c6a8a190cea8d34d06db56bedc44f /winsup/cygwin/fhandler.cc | |
parent | 999820f6ab8aaf6a281dbb919341fcf2a2f3d119 (diff) | |
download | cygnal-6a451dce26d8e5369c79f455f105e0c46ddc8bcb.tar.gz cygnal-6a451dce26d8e5369c79f455f105e0c46ddc8bcb.tar.bz2 cygnal-6a451dce26d8e5369c79f455f105e0c46ddc8bcb.zip |
* fhandler.cc (fhandler_base::read_overlapped): Use a better variable name.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 16ec8114d..b8aa0dd80 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1772,16 +1772,16 @@ fhandler_base::wait_overlapped (bool inres, bool writing, DWORD *bytes, DWORD le void fhandler_base::read_overlapped (void *ptr, size_t& len) { - DWORD bytes_written; + DWORD bytes_read; while (1) { - bool res = ReadFile (get_handle (), ptr, len, &bytes_written, + bool res = ReadFile (get_handle (), ptr, len, &bytes_read, get_overlapped ()); - int wres = wait_overlapped (res, false, &bytes_written); + int wres = wait_overlapped (res, false, &bytes_read); if (wres || !_my_tls.call_signal_handler ()) break; } - len = (size_t) bytes_written; + len = (size_t) bytes_read; } int |