From 14eec47b6101e1f96437f7bb1057ee04a3cc4f63 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 6 May 2013 15:11:20 +0000 Subject: - partly fixed chat reaction on incoming call git-svn-id: http://svn.miranda-ng.org/main/trunk@4591 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_utils.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'protocols/Skype/src/skype_utils.cpp') diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp index 4ad81024b3..26421f7e03 100644 --- a/protocols/Skype/src/skype_utils.cpp +++ b/protocols/Skype/src/skype_utils.cpp @@ -278,11 +278,6 @@ HANDLE CSkypeProto::CreateEvent(const char* szService) return ::CreateHookableEvent(moduleName); } -HANDLE CSkypeProto::HookEvent(const char* szEvent, SkypeEventFunc handler) -{ - return ::HookEventObj(szEvent, (MIRANDAHOOKOBJ)*( void**)&handler, this); -} - void CSkypeProto::FakeAsync(void *param) { ::Sleep(100); @@ -378,11 +373,11 @@ void CSkypeProto::ShowNotification(const wchar_t *caption, const wchar_t *messag { POPUPDATAW ppd = {0}; ppd.lchContact = hContact; - if (!hContact) + //if (!hContact) { - lstrcpyn(ppd.lpwzContactName, caption, MAX_CONTACTNAME); + ::wcsncpy(ppd.lpwzContactName, caption, MAX_CONTACTNAME); } - lstrcpyn(ppd.lpwzText, message, MAX_SECONDLINE); + ::wcsncpy(ppd.lpwzText, message, MAX_SECONDLINE); ppd.lchIcon = ::Skin_GetIcon("Skype_main"); PUAddPopUpW(&ppd); @@ -391,7 +386,7 @@ void CSkypeProto::ShowNotification(const wchar_t *caption, const wchar_t *messag void CSkypeProto::ShowNotification(const wchar_t *message, int flags, HANDLE hContact) { - CSkypeProto::ShowNotification(TranslateT("Skype Protocol"), message, flags, hContact); + CSkypeProto::ShowNotification(::TranslateT(MODULE), message, flags, hContact); } char *CSkypeProto::RemoveHtml(const char *text) -- cgit v1.2.3