diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-05-06 15:11:20 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-05-06 15:11:20 +0000 |
commit | 14eec47b6101e1f96437f7bb1057ee04a3cc4f63 (patch) | |
tree | bf3d11b8902307da42674c38194fce35e8032958 /protocols/Skype/src/skype_utils.cpp | |
parent | c7a87b51ee671f7c5a1bbdd80e001a863f9e7215 (diff) |
- partly fixed chat reaction on incoming call
git-svn-id: http://svn.miranda-ng.org/main/trunk@4591 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_utils.cpp')
-rw-r--r-- | protocols/Skype/src/skype_utils.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
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)
|