From 63ba09b541dabbe838253926896e721cb9be564a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 1 Nov 2018 09:55:24 +0100 Subject: w32: Use CancelSynchronousIo in destroy_reader. * src/w32-util.c (_gpgme_w32_cancel_synchronous_io): New. * src/w32-io.c (destroy_reader): Use it here. -- This has not been tested but should on Vista and later help to fix a possible hang. Signed-off-by: Werner Koch --- src/w32-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/w32-io.c') diff --git a/src/w32-io.c b/src/w32-io.c index ad1e330c..436bb7b2 100644 --- a/src/w32-io.c +++ b/src/w32-io.c @@ -485,7 +485,7 @@ destroy_reader (struct reader_context_s *ctx) dlopen that syscall. */ if (ctx->file_hd != INVALID_HANDLE_VALUE) { - /* Fixme: Call CancelSynchronousIo (handle_of_thread). */ + _gpgme_w32_cancel_synchronous_io (ctx->thread_hd); } else if (ctx->file_sock != INVALID_SOCKET) { -- cgit v1.2.3