summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CryptoPP/main.cpp')
-rw-r--r--plugins/CryptoPP/main.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/CryptoPP/main.cpp b/plugins/CryptoPP/main.cpp
index b3adb93153..8f3d89aa34 100644
--- a/plugins/CryptoPP/main.cpp
+++ b/plugins/CryptoPP/main.cpp
@@ -3,10 +3,11 @@
int hLangpack;
// dllmain
-BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID) {
- g_hInst = hInst;
+BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID)
+{
if ( dwReason == DLL_PROCESS_ATTACH ) {
- {
+ g_hInst = hInst;
+
char temp[MAX_PATH];
GetTempPath(sizeof(temp),temp);
GetLongPathName(temp,TEMP,sizeof(TEMP));
@@ -15,7 +16,6 @@ BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID) {
TEMP_SIZE--;
TEMP[TEMP_SIZE]='\0';
}
- }
InitializeCriticalSection(&localQueueMutex);
InitializeCriticalSection(&localContextMutex);
#ifdef _DEBUG
@@ -38,19 +38,15 @@ MUUID* MirandaPluginInterfaces(void)
return interfaces;
}
-
-int onModulesLoaded(WPARAM wParam,LPARAM lParam) {
- // updater plugin support
+int onModulesLoaded(WPARAM wParam,LPARAM lParam)
+{
+ // updater plugin support
#if defined(_DEBUG) || defined(NETLIB_LOG)
InitNetlib();
#endif
- if(ServiceExists(MS_UPDATE_REGISTERFL)) {
- CallService(MS_UPDATE_REGISTERFL, (WPARAM)2669, (LPARAM)&pluginInfo);
- }
return 0;
}
-
int Load(PLUGINLINK *link)
{
DisableThreadLibraryCalls(g_hInst);