From 95bd4fa813023a56c29a43bdb9ad9777362b389b Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 5 Jul 2024 13:52:33 +0900 Subject: [PATCH] Fix calling CancelSynchronousIo. * src/w32-util.c (_gpgme_w32_cancel_synchronous_io): Use HANDLE. -- GnuPG-bug-id: 6634 Signed-off-by: NIIBE Yutaka --- src/w32-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/w32-util.c b/src/w32-util.c index 1b805bdc..f69c5acb 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -297,7 +297,7 @@ void _gpgme_w32_cancel_synchronous_io (HANDLE thread) { static int initialized; - static BOOL (WINAPI * func)(DWORD); + static BOOL (WINAPI * func)(HANDLE); void *handle; if (!initialized) @@ -318,7 +318,7 @@ _gpgme_w32_cancel_synchronous_io (HANDLE thread) if (func) { - if (!func ((DWORD)thread) && GetLastError() != ERROR_NOT_FOUND) + if (!func (thread) && GetLastError() != ERROR_NOT_FOUND) { TRACE (DEBUG_ENGINE, "gpgme:CancelSynchronousIo", NULL, "called for thread %p: ec=%u",