Fixed thread handling.

This commit is contained in:
Armin Novak 2013-09-05 13:40:16 +02:00
parent 777d8c3535
commit 6c7ad72295

View File

@ -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)