winscard: Don't bother to close handles at process exit.
This commit is contained in:
parent
30d7d31369
commit
8d23d9cbdc
|
@ -40,17 +40,14 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|||
switch (fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
{
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
/* FIXME: for now, we act as if the pcsc daemon is always started */
|
||||
g_startedEvent = CreateEventA(NULL,TRUE,TRUE,NULL);
|
||||
break;
|
||||
}
|
||||
case DLL_PROCESS_DETACH:
|
||||
{
|
||||
if (lpvReserved) break;
|
||||
CloseHandle(g_startedEvent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue