summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_trouter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_trouter.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_trouter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp
index c3233cd60e..c4a8b62932 100644
--- a/protocols/SkypeWeb/src/skype_trouter.cpp
+++ b/protocols/SkypeWeb/src/skype_trouter.cpp
@@ -188,7 +188,7 @@ INT_PTR CSkypeProto::OnIncomingCallCLE(WPARAM, LPARAM lParam)
return 0;
}
-INT_PTR CSkypeProto::OnIncomingCallPP(WPARAM, LPARAM hContact)
+INT_PTR CSkypeProto::OnIncomingCallPP(WPARAM wParam, LPARAM hContact)
{
CLISTEVENT *cle = NULL;
while ((cle = (CLISTEVENT*)CallService(MS_CLIST_GETEVENT, hContact, 0)))
@@ -199,6 +199,7 @@ INT_PTR CSkypeProto::OnIncomingCallPP(WPARAM, LPARAM hContact)
break;
}
}
- NotifyEventHooks(m_hCallHook, (WPARAM)cle->hContact, (LPARAM)0);
+ if (wParam == 1)
+ NotifyEventHooks(m_hCallHook, (WPARAM)hContact, (LPARAM)0);
return 0;
} \ No newline at end of file