Commit 8d23d9cb authored by Alexandre Julliard's avatar Alexandre Julliard

winscard: Don't bother to close handles at process exit.

parent 30d7d313
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment