diff options
Diffstat (limited to 'plugins/AuthState/src/main.cpp')
-rw-r--r-- | plugins/AuthState/src/main.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/AuthState/src/main.cpp b/plugins/AuthState/src/main.cpp index 675f8cbadf..4b5616fe45 100644 --- a/plugins/AuthState/src/main.cpp +++ b/plugins/AuthState/src/main.cpp @@ -19,9 +19,9 @@ #include "stdafx.h"
-HINSTANCE g_hInst;
static HGENMENU hUserMenu;
HANDLE hExtraIcon;
+CMPlugin g_plugin;
int hLangpack;
Opts Options;
@@ -54,12 +54,6 @@ PLUGININFOEX pluginInfo = { { 0xdace7d41, 0xdfa9, 0x4772, { 0x89, 0xae, 0xa5, 0x9a, 0x61, 0x53, 0xe6, 0xb2 } }
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
-{
- g_hInst = hinstDLL;
- return TRUE;
-}
-
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
@@ -185,7 +179,7 @@ extern "C" int __declspec(dllexport) Load(void) hUserMenu = Menu_AddContactMenuItem(&mi);
// IcoLib support
- Icon_Register(g_hInst, LPGEN("Auth state"), iconList, _countof(iconList));
+ Icon_Register(g_plugin.getInst(), LPGEN("Auth state"), iconList, _countof(iconList));
return 0;
}
|