summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmagne <jmagne@fba4d07e-fe0f-4d7f-8147-e0026e666dc0>2007-04-04 18:35:46 +0000
committerjmagne <jmagne@fba4d07e-fe0f-4d7f-8147-e0026e666dc0>2007-04-04 18:35:46 +0000
commit1100b847661442110a7b89e98ddacd435c509867 (patch)
tree74ba130683717641fe1cd4a14fe0c744d4ec222f /src
parent6a007181d5afd156a129f5a4801874def91754d2 (diff)
Call C_Finalize on a Windows PROCESS_DETACH message. Bug #234175. Rev. rrelyea.
git-svn-id: http://svn.fedorahosted.org/svn/coolkey/trunk@60 fba4d07e-fe0f-4d7f-8147-e0026e666dc0
Diffstat (limited to 'src')
-rw-r--r--src/coolkey/dllmain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coolkey/dllmain.cpp b/src/coolkey/dllmain.cpp
index dfef929..dafcdd6 100644
--- a/src/coolkey/dllmain.cpp
+++ b/src/coolkey/dllmain.cpp
@@ -20,6 +20,7 @@
#ifdef WIN32
#include <windows.h>
+#include "mypkcs11.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
@@ -35,6 +36,7 @@ BOOL APIENTRY DllMain( HANDLE hModule,
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
+ C_Finalize(0);
break;
}
return TRUE;