summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--file_io/win32/open.c2
-rw-r--r--file_io/win32/readwrite.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/file_io/win32/open.c b/file_io/win32/open.c
index b6c01432e..f3b93f5ae 100644
--- a/file_io/win32/open.c
+++ b/file_io/win32/open.c
@@ -260,7 +260,7 @@ static apr_status_t make_sparse_file(apr_file_t *file)
} while (res == WAIT_ABANDONED);
if (res != WAIT_OBJECT_0) {
- CancelIo(file->filehand);
+ CancelIoEx(file->filehand, file->pOverlapped);
}
if (GetOverlappedResult(file->filehand, file->pOverlapped,
diff --git a/file_io/win32/readwrite.c b/file_io/win32/readwrite.c
index 96222d8e4..ef3f7ad85 100644
--- a/file_io/win32/readwrite.c
+++ b/file_io/win32/readwrite.c
@@ -99,7 +99,7 @@ static apr_status_t read_with_timeout(apr_file_t *file, void *buf, apr_size_t le
* the operation in progress.
*/
if (res != WAIT_OBJECT_0) {
- CancelIo(file->filehand);
+ CancelIoEx(file->filehand, file->pOverlapped);
}
/* Ignore any failures above. Attempt to complete
@@ -523,7 +523,7 @@ APR_DECLARE(apr_status_t) apr_file_write(apr_file_t *thefile, const void *buf, a
break;
}
if (rv != APR_SUCCESS) {
- CancelIo(thefile->filehand);
+ CancelIoEx(thefile->filehand, thefile->pOverlapped);
}
}
}