From 8a774c838b0902f6e8436c0c3d686070f5bf6400 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 22 Jun 2015 17:36:07 +0000 Subject: Minor fixes for r14306 git-svn-id: http://svn.miranda-ng.org/main/trunk@14331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdchat/src/window.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/core/stdchat') diff --git a/src/core/stdchat/src/window.cpp b/src/core/stdchat/src/window.cpp index 511c18c65b..d480705827 100644 --- a/src/core/stdchat/src/window.cpp +++ b/src/core/stdchat/src/window.cpp @@ -2052,7 +2052,9 @@ LABEL_SHOWWINDOW: s->wState &= ~GC_EVENT_HIGHLIGHT; s->wState &= ~STATE_TALK; SendMessage(hwndDlg, GC_FIXTABICONS, 0, (LPARAM)s); - } } } + } + } + } if (uMsg != WM_ACTIVATE) SetFocus(GetDlgItem(hwndDlg,IDC_MESSAGE)); @@ -2175,12 +2177,10 @@ LABEL_SHOWWINDOW: tr.chrg = cr; tr.lpstrText = pszWord; long iRes = SendDlgItemMessage(hwndDlg, IDC_LOG, EM_GETTEXTRANGE, 0, (LPARAM)&tr); - if (iRes > 0) { - int iLen = (int)mir_tstrlen(pszWord)-1; - while (iLen >= 0 && _tcschr(szTrimString, pszWord[iLen])) { + if (iRes > 0) + for (size_t iLen = mir_tstrlen(pszWord)-1;_tcschr(szTrimString, pszWord[iLen]);iLen--) pszWord[iLen] = 0; - iLen--; - } } } + } uID = CreateGCMenu(hwndDlg, &hMenu, 1, pt, si, NULL, pszWord); switch (uID) { @@ -2268,7 +2268,7 @@ LABEL_SHOWWINDOW: break; case ID_CURR: - Utils_OpenUrlT(tr.lpstrText); + Utils_OpenUrlT(tr.lpstrText,false); break; case ID_COPY: -- cgit v1.2.3