summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-10-16 20:13:24 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-10-16 20:13:24 +0000
commit0e622404fe197f1ecf1c0f1857bff0b5be58b0b1 (patch)
treef49079f4cdfa40ac0240668e2941f3ca2039d5e7 /protocols/Skype/src/skype.cpp
parente13fe448e3a006957227b2de1d39ad9d50274566 (diff)
skypekit added to resurces
git-svn-id: http://svn.miranda-ng.org/main/trunk@1966 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype.cpp')
-rw-r--r--protocols/Skype/src/skype.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp
index d6eb5dd95a..0256f767e0 100644
--- a/protocols/Skype/src/skype.cpp
+++ b/protocols/Skype/src/skype.cpp
@@ -69,7 +69,7 @@ int LoadKeyPair()
return 0;
}
-void StartSkypeRuntime()
+int StartSkypeRuntime()
{
// loading skype runtime
// shitcode
@@ -104,7 +104,7 @@ void StartSkypeRuntime()
mir_sntprintf(param, SIZEOF(param), L"-p -p %d", port);
- CreateProcess(
+ int startingrt = CreateProcess(
runtimePath,
param,
NULL,
@@ -115,12 +115,19 @@ void StartSkypeRuntime()
NULL,
&cif,
&pi);
+ return startingrt;
+
+ /*HRSRC hrsrc = FindResource(g_hInstance, MAKEINTRESOURCE(IDR_RUNTIME), _T("BIN"));
+ DWORD cb = SizeofResource(g_hInstance, hrsrc);
+ */
+
}
extern "C" int __declspec(dllexport) Load(void)
{
LoadKeyPair();
- StartSkypeRuntime();
+ if (!StartSkypeRuntime())
+ return 1;
g_skype = new CSkype();
g_skype->init(keyBuf, "127.0.0.1", port);