diff options
author | Christopher Faylor <me@cgf.cx> | 2011-12-16 16:29:34 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-12-16 16:29:34 +0000 |
commit | 6bd406f9ed9f5b397cdc47f7d5e0dc863322083c (patch) | |
tree | c52460d895766c82075c0473e708d09e146ba9c3 | |
parent | 344e68b166462eada01704cc27251a34a5e32398 (diff) | |
download | cygnal-6bd406f9ed9f5b397cdc47f7d5e0dc863322083c.tar.gz cygnal-6bd406f9ed9f5b397cdc47f7d5e0dc863322083c.tar.bz2 cygnal-6bd406f9ed9f5b397cdc47f7d5e0dc863322083c.zip |
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved
access of wores in successful situations.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 49a50cf34..cdfa3fc50 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-12-16 Christopher Faylor <me.cygwin2011@cgf.cx> + + * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix + unresolved access of wores in successful situations. + 2011-12-16 Corinna Vinschen <vinschen@redhat.com> * Makefile.in (DLL_OFILES): Add wow64.o. diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index b6c719ccd..5fd416ce2 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1939,7 +1939,7 @@ fhandler_base_overlapped::wait_overlapped (bool inres, bool writing, DWORD *byte overridden by the return of GetOverlappedResult which could detect that I/O completion occurred. */ CancelIo (h); - BOOL wores = GetOverlappedResult (h, get_overlapped (), bytes, false); + wores = GetOverlappedResult (h, get_overlapped (), bytes, false); err = GetLastError (); ResetEvent (get_overlapped ()->hEvent); /* Probably not needed but CYA */ debug_printf ("wfres %d, wores %d, bytes %u", wfres, wores, *bytes); |