summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-06-22 17:36:07 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-06-22 17:36:07 +0000
commit8a774c838b0902f6e8436c0c3d686070f5bf6400 (patch)
treed3d5673854d7d17dd31d9fbca4773204b111a7ee /src
parent153afb6986158c2b470064596c2ea2fe6bced918 (diff)
Minor fixes for r14306
git-svn-id: http://svn.miranda-ng.org/main/trunk@14331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/core/stdchat/src/window.cpp14
1 files changed, 7 insertions, 7 deletions
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: