summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-10 15:01:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-10 15:01:22 +0000
commitdf8d5049e0a312f6459b922f3ea300ede752604b (patch)
tree05ec172deddcb56484903ae55117af1a71c2a637
parenta2f5418ba78530cd81aff19497fd44772e7bb42d (diff)
missing break
git-svn-id: http://svn.miranda-ng.org/main/trunk@12739 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/core/stduihist/src/history.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/core/stduihist/src/history.cpp b/src/core/stduihist/src/history.cpp
index b1d3bc5c49..a321e9f5dd 100644
--- a/src/core/stduihist/src/history.cpp
+++ b/src/core/stduihist/src/history.cpp
@@ -39,9 +39,9 @@ static HGENMENU hContactMenu = 0;
static void GetMessageDescription(DBEVENTINFO *dbei, TCHAR* buf, int cbBuf)
{
- TCHAR* msg = DbGetEventTextT(dbei, CP_ACP);
- _tcsncpy(buf, msg ? msg : TranslateT("Invalid message"), cbBuf);
- buf[ cbBuf-1 ] = 0;
+ TCHAR *msg = DbGetEventTextT(dbei, CP_ACP);
+ _tcsncpy(buf, msg ? msg : TranslateT("Invalid message"), cbBuf);
+ buf[ cbBuf-1 ] = 0;
mir_free(msg);
}
@@ -100,18 +100,18 @@ static void GetObjectSummary(DBEVENTINFO *dbei, TCHAR* str, int cbStr)
switch(dbei->eventType) {
case EVENTTYPE_MESSAGE:
- if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing message");
- else pszSrc = TranslateT("Incoming message");
+ if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing message");
+ else pszSrc = TranslateT("Incoming message");
break;
case EVENTTYPE_URL:
- if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing URL");
- else pszSrc = TranslateT("Incoming URL");
+ if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing URL");
+ else pszSrc = TranslateT("Incoming URL");
break;
case EVENTTYPE_FILE:
- if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing file");
- else pszSrc = TranslateT("Incoming file");
+ if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing file");
+ else pszSrc = TranslateT("Incoming file");
break;
default:
@@ -234,6 +234,7 @@ static INT_PTR CALLBACK DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wParam, LP
case WM_GETMINMAXINFO:
((MINMAXINFO*)lParam)->ptMinTrackSize.x = 300;
((MINMAXINFO*)lParam)->ptMinTrackSize.y = 230;
+ break;
case WM_SIZE:
{
@@ -247,6 +248,7 @@ static INT_PTR CALLBACK DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wParam, LP
CallService(MS_UTILS_RESIZEDIALOG, 0, (LPARAM)&urd);
}
return TRUE;
+
case WM_COMMAND:
switch (LOWORD(wParam)) {
case IDOK: