From a473ff2857a9ad01b05f2f43923dbfd8352ee52a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Jul 2012 19:54:12 +0000 Subject: MirandaInterface absence is not a crime now git-svn-id: http://svn.miranda-ng.org/main/trunk@991 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/jabber.cpp | 7 ++++++- src/modules/plugins/newplugins.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/protocols/JabberG/jabber.cpp b/protocols/JabberG/jabber.cpp index 479afdaa59..95ba8e06ef 100644 --- a/protocols/JabberG/jabber.cpp +++ b/protocols/JabberG/jabber.cpp @@ -90,12 +90,17 @@ static int sttCompareProtocols(const CJabberProto *p1, const CJabberProto *p2) LIST g_Instances(1, sttCompareProtocols); ///////////////////////////////////////////////////////////////////////////// -extern "C" BOOL WINAPI DllMain( HINSTANCE hModule, DWORD, LPVOID ) +BOOL WINAPI DllMain( HINSTANCE hModule, DWORD, LPVOID ) { hInst = hModule; return TRUE; } +extern "C" __declspec( dllexport ) PLUGININFOEX *MirandaPluginInfoEx( DWORD mirandaVersion ) +{ + return &pluginInfo; +} + extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; /////////////////////////////////////////////////////////////////////////////// diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 3c27b63f22..76d16cbf6f 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -175,7 +175,7 @@ MUUID miid_servicemode = MIID_SERVICEMODE; static bool validInterfaceList(MUUID *piface) { if (piface == NULL) - return false; + return true; if (equalUUID(miid_last, piface[0])) return false; -- cgit v1.2.3