summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2019-05-27 07:00:11 +0000
committerivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2019-05-27 07:00:11 +0000
commitaed6f3b977df9e8c63b9cf608e05e88c26504217 (patch)
tree09acb30ee793361dd9e0e667f0dbe35b3afe94d3
parented430249b6f675664ecbf91d7e08bb17e1b7bad1 (diff)
downloadlibapr-aed6f3b977df9e8c63b9cf608e05e88c26504217.tar.gz
* file_io/win32/open.c
(make_sparse_file): Use apr_wait_for_single_object() helper. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1860106 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--file_io/win32/open.c7
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) {