* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate

change in arguments to wait_overlapped.
This commit is contained in:
Christopher Faylor 2011-03-09 16:55:54 +00:00
parent 779ece3ce0
commit ed6b66c88d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-03-09 Christopher Faylor <me.cygwin@cgf.cx>
* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops!
Accommodate change in arguments to wait_overlapped.
2011-03-09 Christopher Faylor <me+cygwin@cgf.cx>
* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.

View File

@ -1855,7 +1855,7 @@ fhandler_base_overlapped::write_overlapped (const void *ptr, size_t len)
{
bool res = WriteFile (get_output_handle (), ptr, len, &nbytes,
get_overlapped ());
switch (wait_overlapped (res, true, &nbytes, (size_t) len))
switch (wait_overlapped (res, true, &nbytes, is_nonblocking (), (size_t) len))
{
case overlapped_fallback:
nbytes = write_overlapped_fallback (ptr, len);