summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Mironov <mironych@googlemail.com>2012-09-21 16:09:32 +0000
committerVlad Mironov <mironych@googlemail.com>2012-09-21 16:09:32 +0000
commit6754be273927935a574fa2b60b9ac1446966e55f (patch)
treed540dd83bf3e6972ff1abdcdaef876d5e4a73e82
parent66b70ad58f25694dbf8ede7c5cc7c19a81131087 (diff)
TrafficCounter: исправление для динамической загрузки.
git-svn-id: http://svn.miranda-ng.org/main/trunk@1626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/TrafficCounter/res/resource.rc3
-rw-r--r--plugins/TrafficCounter/src/TrafficCounter.c23
2 files changed, 6 insertions, 20 deletions
diff --git a/plugins/TrafficCounter/res/resource.rc b/plugins/TrafficCounter/res/resource.rc
index dfc0251b23..dad0617b25 100644
--- a/plugins/TrafficCounter/res/resource.rc
+++ b/plugins/TrafficCounter/res/resource.rc
@@ -10,7 +10,8 @@
//
#include <windows.h>
#include <winres.h>
-
+
+
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
diff --git a/plugins/TrafficCounter/src/TrafficCounter.c b/plugins/TrafficCounter/src/TrafficCounter.c
index b0e4f3ee17..114cef3637 100644
--- a/plugins/TrafficCounter/src/TrafficCounter.c
+++ b/plugins/TrafficCounter/src/TrafficCounter.c
@@ -116,28 +116,13 @@ __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
return &pluginInfoEx;
}
-static const MUUID interfaces[] = {MIID_TRAFFICCOUNTER, MIID_LAST};
+__declspec(dllexport) const MUUID interfaces[] = {MIID_TRAFFICCOUNTER, MIID_LAST};
-__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- return interfaces;
-}
-
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
-{
-/* switch(fdwReason)
- {
- case DLL_PROCESS_ATTACH:*/
- hInst = hinstDLL;
-/* DisableThreadLibraryCalls(hInst);
- break;
+ hInst = hinstDLL;
+ DisableThreadLibraryCalls(hInst);
- case DLL_PROCESS_DETACH:
- PostMessage(TrafficHwnd,WM_USER+697,0,666);
- //
- break;
- }*/
- //
return TRUE;
}