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/sys-util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sys-util.h') diff --git a/src/sys-util.h b/src/sys-util.h index 094399c4..6cb22245 100644 --- a/src/sys-util.h +++ b/src/sys-util.h @@ -30,6 +30,7 @@ char *_gpgme_get_gpgconf_path (void); #ifdef HAVE_W32_SYSTEM const char *_gpgme_get_inst_dir (void); +void _gpgme_w32_cancel_synchronous_io (HANDLE thread); #endif #endif /* SYS_UTIL_H */ -- cgit v1.2.3