summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-17 05:49:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-17 05:49:41 +0000
commitba1dd064d361084d7fa0e587a79c1d165381d80f (patch)
tree46326a3fa3c9e9a435854f03a202403c761dde10
parentf2487c29d7a60fc7ebedf9351a63d7b0967ff653 (diff)
old-style way to retrieve interfaces for the HistoryPP
git-svn-id: http://svn.miranda-ng.org/main/trunk@996 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/modules/plugins/newplugins.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp
index 76d16cbf6f..d890de5157 100644
--- a/src/modules/plugins/newplugins.cpp
+++ b/src/modules/plugins/newplugins.cpp
@@ -261,7 +261,6 @@ int checkAPI(TCHAR* plugin, BASIC_PLUGIN_INFO* bpi, DWORD mirandaVersion, int ch
bpi->Load = (Miranda_Plugin_Load) GetProcAddress(h, "Load");
bpi->Unload = (Miranda_Plugin_Unload) GetProcAddress(h, "Unload");
bpi->InfoEx = (Miranda_Plugin_InfoEx) GetProcAddress(h, "MirandaPluginInfoEx");
- bpi->Interfaces = (MUUID*) GetProcAddress(h, "MirandaInterfaces");
// if they were present
if ( !bpi->Load || !bpi->Unload || !bpi->InfoEx) {
@@ -270,6 +269,14 @@ LBL_Error:
return 0;
}
+ bpi->Interfaces = (MUUID*) GetProcAddress(h, "MirandaInterfaces");
+ if ( !bpi->Interfaces) {
+ typedef MUUID * (__cdecl * Miranda_Plugin_Interfaces) (void);
+ Miranda_Plugin_Interfaces pFunc = (Miranda_Plugin_Interfaces) GetProcAddress(h, "MirandaPluginInterfaces");
+ if (pFunc)
+ bpi->Interfaces = pFunc();
+ }
+
PLUGININFOEX* pi = bpi->InfoEx(mirandaVersion);
if ( !checkPI(bpi, pi))
goto LBL_Error;