summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-01 19:25:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-01 19:25:45 +0000
commit4deaf28bfaf2a71686e0ef2e3b494ab5b807311b (patch)
tree38301157c3da008899a9f814b9e5c8a3949ceb88 /protocols/Skype/src/skype.cpp
parente8d6a2e3098bf4ee06b2bcb143dda488994e4e4d (diff)
- netlib funcs moved to skype_netlib.cpp
- some minor changes git-svn-id: http://svn.miranda-ng.org/main/trunk@1753 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype.cpp')
-rw-r--r--protocols/Skype/src/skype.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp
index 5254eaebf0..db983a1b68 100644
--- a/protocols/Skype/src/skype.cpp
+++ b/protocols/Skype/src/skype.cpp
@@ -122,9 +122,7 @@ void StartSkypeRuntime()
if ( FindWindow(NULL, runtimePath))
- {
- port += rand() % 100;
- }
+ port += rand() % 100;
mir_sntprintf(param, SIZEOF(param), L"-p -p %d", port);
@@ -143,11 +141,11 @@ void StartSkypeRuntime()
extern "C" int __declspec(dllexport) Load(void)
{
- StartSkypeRuntime();
LoadKeyPair();
+ StartSkypeRuntime();
g_skype = new CSkype();
- g_skype->init(keyBuf, "127.0.0.1", port, "streamlog.txt");
+ g_skype->init(keyBuf, "127.0.0.1", port);
g_skype->start();
PROTOCOLDESCRIPTOR pd = { sizeof(pd) };