* fhandler.cc (fhandler_base::read_overlapped): Use a better variable name.
This commit is contained in:
parent
999820f6ab
commit
6a451dce26
|
@ -1,3 +1,8 @@
|
||||||
|
2009-06-16 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* fhandler.cc (fhandler_base::read_overlapped): Use a better variable
|
||||||
|
name.
|
||||||
|
|
||||||
2009-06-16 Christopher Faylor <me+cygwin@cgf.cx>
|
2009-06-16 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_base::read_overlapped): Preserve len when
|
* fhandler.cc (fhandler_base::read_overlapped): Preserve len when
|
||||||
|
|
|
@ -1772,16 +1772,16 @@ fhandler_base::wait_overlapped (bool inres, bool writing, DWORD *bytes, DWORD le
|
||||||
void
|
void
|
||||||
fhandler_base::read_overlapped (void *ptr, size_t& len)
|
fhandler_base::read_overlapped (void *ptr, size_t& len)
|
||||||
{
|
{
|
||||||
DWORD bytes_written;
|
DWORD bytes_read;
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
bool res = ReadFile (get_handle (), ptr, len, &bytes_written,
|
bool res = ReadFile (get_handle (), ptr, len, &bytes_read,
|
||||||
get_overlapped ());
|
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 ())
|
if (wres || !_my_tls.call_signal_handler ())
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
len = (size_t) bytes_written;
|
len = (size_t) bytes_read;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue