Fix line endings on last commit

This commit is contained in:
Mike Gelfand 2016-01-02 15:26:23 +00:00
parent 119d10f01e
commit 52b2a7557f
1 changed files with 19 additions and 18 deletions

View File

@ -61,12 +61,12 @@ tr_watchdir_win32;
****
***/
static BOOL
tr_get_overlapped_result_ex (HANDLE handle,
LPOVERLAPPED overlapped,
LPDWORD bytes_transferred,
DWORD timeout,
BOOL alertable)
static BOOL
tr_get_overlapped_result_ex (HANDLE handle,
LPOVERLAPPED overlapped,
LPDWORD bytes_transferred,
DWORD timeout,
BOOL alertable)
{
typedef BOOL (WINAPI * impl_t) (HANDLE, LPOVERLAPPED, LPDWORD, DWORD, BOOL);
@ -83,18 +83,18 @@ tr_get_overlapped_result_ex (HANDLE handle,
if (real_impl != NULL)
return real_impl (handle, overlapped, bytes_transferred, timeout, alertable);
const DWORD wait_result = WaitForSingleObjectEx (handle, timeout, alertable);
if (wait_result == WAIT_FAILED)
return FALSE;
if (wait_result == WAIT_IO_COMPLETION || wait_result == WAIT_TIMEOUT)
{
SetLastError (wait_result);
return FALSE;
}
assert (wait_result == WAIT_OBJECT_0);
return GetOverlappedResult (handle, overlapped, bytes_transferred, FALSE);
const DWORD wait_result = WaitForSingleObjectEx (handle, timeout, alertable);
if (wait_result == WAIT_FAILED)
return FALSE;
if (wait_result == WAIT_IO_COMPLETION || wait_result == WAIT_TIMEOUT)
{
SetLastError (wait_result);
return FALSE;
}
assert (wait_result == WAIT_OBJECT_0);
return GetOverlappedResult (handle, overlapped, bytes_transferred, FALSE);
}
static unsigned int __stdcall
@ -320,3 +320,4 @@ fail:
tr_free (wide_path);
return NULL;
}