Fix calling CancelSynchronousIo.
* src/w32-util.c (_gpgme_w32_cancel_synchronous_io): Use HANDLE. -- GnuPG-bug-id: 6634 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
de60684500
commit
95bd4fa813
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user