From 6bd406f9ed9f5b397cdc47f7d5e0dc863322083c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 16 Dec 2011 16:29:34 +0000 Subject: * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved access of wores in successful situations. --- winsup/cygwin/fhandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.cc') 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); -- cgit v1.2.3