diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-08-11 13:52:39 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-08-11 13:52:39 +0000 |
commit | e6b2c1aafe3e877e3a6a90df006887d0b5f59f3d (patch) | |
tree | 09f6f8c440f9df9fdeec116ab69f1b245b5ef5e9 /protocols/FacebookRM/src/chat.cpp | |
parent | d3e19377a2898c86499b31ca2ea85f8fce643438 (diff) |
Facebook: Fix various ptrA issues (potential crashes)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/chat.cpp')
-rw-r--r-- | protocols/FacebookRM/src/chat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp index 82f5368c62..5d2868eecf 100644 --- a/protocols/FacebookRM/src/chat.cpp +++ b/protocols/FacebookRM/src/chat.cpp @@ -254,7 +254,8 @@ INT_PTR FacebookProto::OnJoinChat(WPARAM hContact, LPARAM suppress) ptrT idT( getTStringA(hContact, "ChatRoomID"));
ptrT nameT( getTStringA(hContact, "Nick"));
- AddChat(idT, nameT);
+ if (idT && nameT)
+ AddChat(idT, nameT);
/* GCSESSION gcw = {sizeof(gcw)};
|