From 0920e599aa9ad0e6137bb0a23699456df4e9966e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Sep 2013 07:49:01 +0000 Subject: fix for possible crash in Skype git-svn-id: http://svn.miranda-ng.org/main/trunk@6237 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_proto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Skype') 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))); -- cgit v1.2.3