Adjusted timeout handling in win32