From 8ffc77be71507825a8f7585bcabff8ccc370206a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 8 Dec 2018 20:12:16 +0300 Subject: db_get_sa / db_get_wsa to receive the default value, massive code simplification --- protocols/VKontakte/src/vk_status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/vk_status.cpp') diff --git a/protocols/VKontakte/src/vk_status.cpp b/protocols/VKontakte/src/vk_status.cpp index 29efd4b9e3..89011c4e89 100644 --- a/protocols/VKontakte/src/vk_status.cpp +++ b/protocols/VKontakte/src/vk_status.cpp @@ -76,7 +76,7 @@ void CVkProto::SetServerStatus(int iNewStatus) return; int iOldStatus = m_iStatus; - CMStringW oldStatusMsg(ptrW(db_get_wsa(0, m_szModuleName, "OldStatusMsg"))); + CMStringW oldStatusMsg(db_get_wsm(0, m_szModuleName, "OldStatusMsg")); ptrW pwszListeningToMsg(db_get_wsa(0, m_szModuleName, "ListeningTo")); if (iNewStatus == ID_STATUS_OFFLINE) { -- cgit v1.2.3