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

View File

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