From b3d59c0b3b4009e0d86c9eb858bb9131b815413b Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 26 Apr 2013 17:18:43 +0000 Subject: more shotter version git-svn-id: http://svn.miranda-ng.org/main/trunk@4536 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'protocols/Skype/src') diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp index 26ef149162..1da39c88ab 100644 --- a/protocols/Skype/src/skype.cpp +++ b/protocols/Skype/src/skype.cpp @@ -230,13 +230,10 @@ int StartSkypeRuntime(HINSTANCE hInstance, const wchar_t *profileName, int &port } ::CloseHandle(snapshot); - wchar_t param[128], path[MAX_PATH]; + wchar_t param[128]; PROCESS_INFORMATION pi; VARST dbPath( _T("%miranda_userdata%\\SkypeKit")); - _tcslwr(dbPath); - mir_sntprintf(path, SIZEOF(path), _T("\"%s\""), dbPath); - ::swprintf(param, SIZEOF(param), L"-p -P %d -f %s", port, path); - //::swprintf(param, SIZEOF(param), L"-p -P %d", port); + ::swprintf(param, SIZEOF(param), L"-p -P %d -f \"%s\"", port, dbPath); int startingrt = ::CreateProcess( fileName, param, NULL, NULL, FALSE, -- cgit v1.2.3