diff options
| author | George Hazan <ghazan@miranda.im> | 2018-05-16 13:42:19 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2018-05-16 13:42:25 +0300 |
| commit | 51f216f7e0feb67ad21387219c1b90e42b14658d (patch) | |
| tree | 2ce37e615bf4f82320fe01babc37401fa4a56ca3 /src/core/stdssl | |
| parent | 2e8582832fe56c89bb422b82e884ddaf67a8dbb3 (diff) | |
Core plugins => CMPlugin
Diffstat (limited to 'src/core/stdssl')
| -rw-r--r-- | src/core/stdssl/src/main.cpp | 8 | ||||
| -rw-r--r-- | src/core/stdssl/src/stdafx.h | 8 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/core/stdssl/src/main.cpp b/src/core/stdssl/src/main.cpp index 5cde1cd401..6fb8898d70 100644 --- a/src/core/stdssl/src/main.cpp +++ b/src/core/stdssl/src/main.cpp @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., int LoadSslModule(void);
void UnloadSslModule(void);
-HINSTANCE hInst;
+CMPlugin g_plugin;
int hLangpack;
PLUGININFOEX pluginInfo = {
@@ -40,12 +40,6 @@ PLUGININFOEX pluginInfo = { { 0x312C4F84, 0x75BE, 0x4404, {0xBC, 0xB1, 0xC1, 0x03, 0xDB, 0xE5, 0xA3, 0xB8 }}
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
-{
- hInst = hinstDLL;
- return TRUE;
-}
-
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
diff --git a/src/core/stdssl/src/stdafx.h b/src/core/stdssl/src/stdafx.h index ae3bbd4f13..6221d6c3b4 100644 --- a/src/core/stdssl/src/stdafx.h +++ b/src/core/stdssl/src/stdafx.h @@ -32,7 +32,6 @@ typedef struct SslHandle *HSSL; #include <malloc.h>
-#define __NO_CMPLUGIN_NEEDED
#include <newpluginapi.h>
#include <m_langpack.h>
#include <m_netlib.h>
@@ -41,4 +40,9 @@ typedef struct SslHandle *HSSL; #include "version.h"
-extern HINSTANCE g_hInst;
+struct CMPlugin : public PLUGIN<CMPlugin>
+{
+ CMPlugin() :
+ PLUGIN<CMPlugin>(nullptr)
+ {}
+};
|
