diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-23 15:52:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-23 15:52:20 +0300 |
commit | 51f835c7711083e9b3288eaa8d4513f6ee955a45 (patch) | |
tree | 2f86cd5c8f7d4342299cfebd9e385b4d7611dcd8 /protocols/Twitter/src | |
parent | 26c0650cf4a720572fe262d40615ef8e3787368a (diff) |
code cleaning
Diffstat (limited to 'protocols/Twitter/src')
-rw-r--r-- | protocols/Twitter/src/contacts.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index 248cd0d59d..c87dafb226 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -161,12 +161,8 @@ void TwitterProto::GetAwayMsgWorker(void *arg) if (hContact == 0)
return;
- DBVARIANT dbv;
- if (!db_get_ws(hContact, "CList", "StatusMsg", &dbv)) {
- ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, (HANDLE)1, (LPARAM)dbv.pwszVal);
- db_free(&dbv);
- }
- else ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_FAILED, (HANDLE)1, 0);
+ ptrW wszMsg(db_get_wsa(hContact, "CList", "StatusMsg"));
+ ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, (HANDLE)1, wszMsg);
}
HANDLE TwitterProto::GetAwayMsg(MCONTACT hContact)
|