diff options
author | Ivan Zhakov <ivan@apache.org> | 2019-05-27 17:11:23 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2019-05-27 17:11:23 +0000 |
commit | 992d5a67041b998c846515f00afc6196664da1e2 (patch) | |
tree | c21f1deecd4de7b23398e40dddc6884bf5a2831f /file_io/win32/open.c | |
parent | 96d937e6e3e71d73d19d4fae28c95f5554ba7183 (diff) | |
parent | 944bfb5d1b282ea5ccdf023f7341641343da5a16 (diff) | |
download | apr-992d5a67041b998c846515f00afc6196664da1e2.tar.gz |
On 'xmllite' branch: Merge changes from trunk.xmllite
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/xmllite@1860149 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/win32/open.c')
-rw-r--r-- | file_io/win32/open.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/file_io/win32/open.c b/file_io/win32/open.c index f3b93f5ae..fca4397a8 100644 --- a/file_io/win32/open.c +++ b/file_io/win32/open.c @@ -252,11 +252,8 @@ static apr_status_t make_sparse_file(apr_file_t *file) if (rv == APR_FROM_OS_ERROR(ERROR_IO_PENDING)) { do { - res = WaitForSingleObject(file->pOverlapped->hEvent, - (file->timeout > 0) - ? (DWORD)(file->timeout/1000) - : ((file->timeout == -1) - ? INFINITE : 0)); + res = apr_wait_for_single_object(file->pOverlapped->hEvent, + file->timeout); } while (res == WAIT_ABANDONED); if (res != WAIT_OBJECT_0) { |