diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-05 13:33:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-05 13:33:57 +0000 |
commit | a039e3378554f4f7b12a38722f72dfded2f4b277 (patch) | |
tree | f265023db904a0fb05734095add7ec30a6285be2 /plugins/TabSRMM/src/srmm.cpp | |
parent | dfb3d8f9d75adce65f7f0d17698dca455a760769 (diff) |
wrong code from MirandaPluginInfoEx moved to Load()
git-svn-id: http://svn.miranda-ng.org/main/trunk@311 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/srmm.cpp')
-rw-r--r-- | plugins/TabSRMM/src/srmm.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
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);
|