Fixed thread handling.
This commit is contained in:
parent
777d8c3535
commit
6c7ad72295
@ -112,13 +112,16 @@ struct _SMARTCARD_IRP_WORKER
|
|||||||
};
|
};
|
||||||
typedef struct _SMARTCARD_IRP_WORKER SMARTCARD_IRP_WORKER;
|
typedef struct _SMARTCARD_IRP_WORKER SMARTCARD_IRP_WORKER;
|
||||||
|
|
||||||
static void smartcard_process_irp_thread_func(SMARTCARD_IRP_WORKER* irpWorker)
|
static void *smartcard_process_irp_thread_func(SMARTCARD_IRP_WORKER* irpWorker)
|
||||||
{
|
{
|
||||||
smartcard_process_irp(irpWorker->smartcard, irpWorker->irp);
|
smartcard_process_irp(irpWorker->smartcard, irpWorker->irp);
|
||||||
|
|
||||||
CloseHandle(irpWorker->thread);
|
CloseHandle(irpWorker->thread);
|
||||||
|
|
||||||
free(irpWorker);
|
free(irpWorker);
|
||||||
|
|
||||||
|
ExitThread(0);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void* smartcard_thread_func(void* arg)
|
static void* smartcard_thread_func(void* arg)
|
||||||
|
Loading…
Reference in New Issue
Block a user