From b9ed228aeea79659f0a88d4e04ae1a3b8d59a8e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Jan 2014 15:49:44 +0000 Subject: 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 --- src/modules/plugins/newplugins.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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)) -- cgit v1.2.3