summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-16 19:54:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-16 19:54:12 +0000
commita473ff2857a9ad01b05f2f43923dbfd8352ee52a (patch)
treeb7acaae45771d65bc0a8e2154a1d823c2cad1a87
parent0007d748f86bb00d876549d4415d595320e0499c (diff)
MirandaInterface absence is not a crime now
git-svn-id: http://svn.miranda-ng.org/main/trunk@991 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/JabberG/jabber.cpp7
-rw-r--r--src/modules/plugins/newplugins.cpp2
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<CJabberProto> 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;