summaryrefslogtreecommitdiff
path: root/protocols/Skype/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-26 07:49:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-26 07:49:01 +0000
commit0920e599aa9ad0e6137bb0a23699456df4e9966e (patch)
treef063b101c2b9f811c1085ac9190b799a7938a36f /protocols/Skype/src
parent67b5f781b96a699e5ca73103084bc936f0d42931 (diff)
fix for possible crash in Skype
git-svn-id: http://svn.miranda-ng.org/main/trunk@6237 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src')
-rw-r--r--protocols/Skype/src/skype_proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp
index a5518085e5..3c9cab6546 100644
--- a/protocols/Skype/src/skype_proto.cpp
+++ b/protocols/Skype/src/skype_proto.cpp
@@ -624,7 +624,7 @@ int __cdecl CSkypeProto::UserIsTyping(HANDLE hContact, int type)
if (hContact && this->IsOnline() && this->m_iStatus != ID_STATUS_INVISIBLE)
{
ptrW sid(::db_get_wsa(hContact, this->m_szModuleName, SKYPE_SETTINGS_SID));
- if (::wcsicmp(sid, this->login) != 0)
+ if (sid != NULL && ::wcsicmp(sid, this->login) != 0)
{
SEStringList targets;
targets.append((char *)ptrA(::mir_utf8encodeW(sid)));