diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-24 15:49:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-24 15:49:44 +0000 |
commit | b9ed228aeea79659f0a88d4e04ae1a3b8d59a8e2 (patch) | |
tree | 7adcaa1a95eee32ea0e74d657deab52ff4dfbecf /src/modules/plugins/newplugins.cpp | |
parent | 4da4d41930745da5146b1524765c2d15e4dad127 (diff) |
oops... forgotten that shitty pascal still cannot export variables
git-svn-id: http://svn.miranda-ng.org/main/trunk@7858 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/plugins/newplugins.cpp')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 6be0b7976e..8aa5dfb41a 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -257,6 +257,12 @@ LBL_Error: }
bpi->Interfaces = (MUUID*) GetProcAddress(h, "MirandaInterfaces");
+ if (bpi->Interfaces == NULL) {
+ 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))
|