summaryrefslogtreecommitdiff
path: root/protocols/Skype/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src')
-rw-r--r--protocols/Skype/src/resource.h3
-rw-r--r--protocols/Skype/src/skype.cpp13
2 files changed, 12 insertions, 4 deletions
diff --git a/protocols/Skype/src/resource.h b/protocols/Skype/src/resource.h
index 5c008dcaec..99d4d7670d 100644
--- a/protocols/Skype/src/resource.h
+++ b/protocols/Skype/src/resource.h
@@ -5,6 +5,7 @@
#define IDD_SKYPEACCOUNT 9
#define IDD_OPTIONS 10
#define IDI_ICON 101
+#define IDR_RUNTIME 102
#define IDD_PASSWORDREQUEST 105
#define IDC_SN 1001
#define IDC_PW 1002
@@ -18,7 +19,7 @@
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NEXT_RESOURCE_VALUE 102
+#define _APS_NEXT_RESOURCE_VALUE 103
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1004
#define _APS_NEXT_SYMED_VALUE 101
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);