summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-09-26 18:24:48 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-09-26 18:24:48 +0000
commitd9cd01de6dd3458ad806fdbe1d29108eda55b3e4 (patch)
tree2a3bc6b7e99911967f0177bde9e6f34b564525ed /protocols/Skype/src/skype.cpp
parent596d5ab98574161befaf4b37513bbb905270e317 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype.cpp')
-rw-r--r--protocols/Skype/src/skype.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp
index 47e9ea0c5e..82df6a8da4 100644
--- a/protocols/Skype/src/skype.cpp
+++ b/protocols/Skype/src/skype.cpp
@@ -40,10 +40,9 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCO
static CSkypeProto* SkypeProtoInit(const char* pszProtoName, const TCHAR* tszUserName)
{
- //CSkypeProto *ppro = new CSkypeProto(pszProtoName, tszUserName);
- //g_Instances.insert(ppro);
- //return ppro;
- return 0;
+ CSkypeProto *ppro = new CSkypeProto(pszProtoName, tszUserName);
+ g_Instances.insert(ppro);
+ return ppro;
}
static int SkypeProtoUninit(CSkypeProto* ppro)
@@ -55,14 +54,15 @@ static int SkypeProtoUninit(CSkypeProto* ppro)
extern "C" int __declspec(dllexport) Load(void)
{
- //mir_getLP(&pluginInfo);
+ mir_getLP(&pluginInfo);
- PROTOCOLDESCRIPTOR pd = { sizeof(pd) };
+ PROTOCOLDESCRIPTOR pd = {0};
+ pd.cbSize = sizeof(pd);
pd.szName = "Skype";
pd.type = PROTOTYPE_PROTOCOL;
pd.fnInit = (pfnInitProto)SkypeProtoInit;
pd.fnUninit = (pfnUninitProto)SkypeProtoUninit;
- CallService(MS_PROTO_REGISTERMODULE, 0, reinterpret_cast<LPARAM>(&pd));
+ CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);
return 0;
}