From b0d7f419371c84e5ffcd391ac1e4fa779fef9262 Mon Sep 17 00:00:00 2001 From: slotwin Date: Fri, 16 May 2014 14:09:55 +0000 Subject: Scriver/options: move Line between messages color setting to Fonts and colors page code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@9195 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/globals.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins/Scriver/src/globals.cpp') diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index 29ecedf337..e717c8536e 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -392,7 +392,7 @@ void ReloadGlobals() static int ackevent(WPARAM wParam, LPARAM lParam) { - ACKDATA *pAck = (ACKDATA*)lParam; + ACKDATA *pAck = (ACKDATA *)lParam; if (!pAck) return 0; @@ -415,14 +415,15 @@ static int ackevent(WPARAM wParam, LPARAM lParam) if (hwndSender != NULL) { ErrorWindowData *ewd = (ErrorWindowData *)mir_alloc(sizeof(ErrorWindowData)); ewd->szName = GetNickname(item->hContact, item->proto); - ewd->szDescription = mir_a2t((char*)pAck->lParam); + ewd->szDescription = mir_a2t((char *)pAck->lParam); ewd->szText = GetSendBufferMsg(item); ewd->hwndParent = hwndSender; ewd->queueItem = item; SendMessage(hwndSender, DM_STOPMESSAGESENDING, 0, 0); SendMessage(hwndSender, DM_SHOWERRORMESSAGE, 0, (LPARAM)ewd); } - else RemoveSendQueueItem(item); + else + RemoveSendQueueItem(item); } return 0; } @@ -436,13 +437,13 @@ static int ackevent(WPARAM wParam, LPARAM lParam) dbei.timestamp = time(NULL); dbei.cbBlob = lstrlenA(item->sendBuffer) + 1; if (!(item->flags & PREF_UTF)) - dbei.cbBlob *= sizeof(TCHAR)+1; + dbei.cbBlob *= sizeof(TCHAR) + 1; dbei.pBlob = (PBYTE)item->sendBuffer; MessageWindowEvent evt = { sizeof(evt), (int)item->hSendId, item->hContact, &dbei }; NotifyEventHooks(hHookWinWrite, 0, (LPARAM)&evt); - item->sendBuffer = (char*)dbei.pBlob; + item->sendBuffer = (char *)dbei.pBlob; db_event_add(item->hContact, &dbei); if (item->hwndErrorDlg != NULL) -- cgit v1.2.3