From a039e3378554f4f7b12a38722f72dfded2f4b277 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Jun 2012 13:33:57 +0000 Subject: wrong code from MirandaPluginInfoEx moved to Load() git-svn-id: http://svn.miranda-ng.org/main/trunk@311 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/srmm.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'plugins/TabSRMM/src/srmm.cpp') diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp index ff8aefa28a..9bddecfa1b 100644 --- a/plugins/TabSRMM/src/srmm.cpp +++ b/plugins/TabSRMM/src/srmm.cpp @@ -87,16 +87,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion) { - CMimAPI::m_MimVersion = mirandaVersion; - - if(WinVerMajor() < 5) { - MessageBox(0, _T("This version of tabSRMM requires Windows 2000 or later."), _T("tabSRMM"), MB_OK | MB_ICONERROR); - return(0); - } - if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 8, 6, 0)) { - MessageBox(0, _T("This version of tabSRMM requires Miranda 0.8.5 or later. The plugin cannot be loaded."), _T("tabSRMM"), MB_OK | MB_ICONERROR); - return(0); - } return &pluginInfo; } @@ -109,6 +99,11 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) extern "C" int __declspec(dllexport) Load(PLUGINLINK * link) { + if (WinVerMajor() < 5) { + MessageBox(0, _T("This version of tabSRMM requires Windows 2000 or later."), _T("tabSRMM"), MB_OK | MB_ICONERROR); + return 1; + } + pluginLink = link; mir_getMMI(&mmi); -- cgit v1.2.3