* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved

access of wores in successful situations.
This commit is contained in:
Christopher Faylor 2011-12-16 16:29:34 +00:00
parent 344e68b166
commit 6bd406f9ed
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);