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",