mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-20 07:51:35 +08:00
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved
access of wores in successful situations.
This commit is contained in:
parent
344e68b166
commit
6bd406f9ed
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user