From f51995e13679a37851baef8e7f52f2d993cbc7c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Sep 2016 17:11:58 +0000 Subject: mode old database junk to die git-svn-id: http://svn.miranda-ng.org/main/trunk@17291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_utils.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'protocols/Steam/src/steam_utils.cpp') diff --git a/protocols/Steam/src/steam_utils.cpp b/protocols/Steam/src/steam_utils.cpp index 0fb7f4474d..9a3633953f 100644 --- a/protocols/Steam/src/steam_utils.cpp +++ b/protocols/Steam/src/steam_utils.cpp @@ -184,17 +184,16 @@ void CSteamProto::ShowNotification(const wchar_t *message, int flags, MCONTACT h ShowNotification(MODULEW, message, flags, hContact); } -INT_PTR __cdecl CSteamProto::OnGetEventTextChatStates(WPARAM, LPARAM lParam) +INT_PTR __cdecl CSteamProto::OnGetEventTextChatStates(WPARAM pEvent, LPARAM datatype) { // Retrieves a chat state description from an event - DBEVENTGETTEXT *pdbEvent = (DBEVENTGETTEXT *)lParam; - if (pdbEvent->dbei->cbBlob > 0) { - if (pdbEvent->dbei->pBlob[0] == STEAM_DB_EVENT_CHATSTATES_GONE) { - if (pdbEvent->datatype == DBVT_WCHAR) + DBEVENTINFO *dbei = (DBEVENTINFO *)pEvent; + if (dbei->cbBlob > 0) { + if (dbei->pBlob[0] == STEAM_DB_EVENT_CHATSTATES_GONE) { + if (datatype == DBVT_WCHAR) return (INT_PTR)mir_wstrdup(TranslateT("closed chat session")); - else if (pdbEvent->datatype == DBVT_ASCIIZ) - return (INT_PTR)mir_strdup(Translate("closed chat session")); + return (INT_PTR)mir_strdup(Translate("closed chat session")); } } -- cgit v1.2.3