diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2018-05-17 11:42:46 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2018-05-17 11:43:07 +0300 |
commit | 73d93114e2c4d4c1c259fa1474a5c6bd723b92ee (patch) | |
tree | 328603e0b26a88e74aca6e728a1fe0c28bf094ec /plugins/IEView/src/ieview_main.cpp | |
parent | ad103f4be37b7082bcca7106b77b7606e4173920 (diff) |
IEView, IgnoreState, Import: cmplugin adaptation
Diffstat (limited to 'plugins/IEView/src/ieview_main.cpp')
-rw-r--r-- | plugins/IEView/src/ieview_main.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/IEView/src/ieview_main.cpp b/plugins/IEView/src/ieview_main.cpp index 2653da6948..544f3a1382 100644 --- a/plugins/IEView/src/ieview_main.cpp +++ b/plugins/IEView/src/ieview_main.cpp @@ -20,10 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "stdafx.h"
-HINSTANCE hInstance;
CLIST_INTERFACE *pcli;
char *workingDirUtf8;
+CMPlugin g_plugin;
int hLangpack;
PLUGININFOEX pluginInfoEx = {
@@ -39,12 +39,6 @@ PLUGININFOEX pluginInfoEx = { { 0x0495171b, 0x7137, 0x4ded, { 0x97, 0xf8, 0xce, 0x6f, 0xed, 0x67, 0xd6, 0x91 } }
};
-BOOL WINAPI DllMain(HINSTANCE hModule, DWORD, LPVOID)
-{
- hInstance = hModule;
- return TRUE;
-}
-
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
@@ -84,7 +78,7 @@ extern "C" int __declspec(dllexport) Load(void) CreateServiceFunction(MS_IEVIEW_NAVIGATE, HandleIENavigate);
CreateServiceFunction("IEView/ReloadOptions", ReloadOptions);
hHookOptionsChanged = CreateHookableEvent(ME_IEVIEW_OPTIONSCHANGED);
- Icon_Register(hInstance, ieviewModuleName, iconList, _countof(iconList), ieviewModuleName);
+ Icon_Register(g_plugin.getInst(), ieviewModuleName, iconList, _countof(iconList), ieviewModuleName);
return 0;
}
|