diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-14 11:13:37 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-14 11:13:37 +0000 |
commit | 721aea0764451e985d575236205808bbef298244 (patch) | |
tree | 3a1c566c364e5fc2fff86b87d494497e7de6f93d /plugins/Chat/window.c | |
parent | 1784cdf49b8196219563795cf3b11b7c4c2a6746 (diff) |
one more "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Chat/window.c')
-rw-r--r-- | plugins/Chat/window.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/plugins/Chat/window.c b/plugins/Chat/window.c index d6acde7f53..2021496563 100644 --- a/plugins/Chat/window.c +++ b/plugins/Chat/window.c @@ -401,12 +401,8 @@ static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, gt.cb = iLen+99;
gt.flags = GT_DEFAULT;
- #if defined( _UNICODE )
- gt.codepage = 1200;
- #else
- gt.codepage = CP_ACP;
- #endif
-
+ gt.codepage = 1200;
+
SendMessage(hwnd, EM_GETTEXTEX, (WPARAM)>, (LPARAM)pszText);
while ( start >0 && pszText[start-1] != ' ' && pszText[start-1] != 13 && pszText[start-1] != VK_TAB)
start--;
@@ -2378,11 +2374,7 @@ LABEL_SHOWWINDOW: hData = GlobalAlloc(GMEM_MOVEABLE, sizeof(TCHAR)*(lstrlen(tr.lpstrText) + 1));
lstrcpy(( TCHAR* )GlobalLock(hData), tr.lpstrText);
GlobalUnlock(hData);
- #if defined( _UNICODE )
- SetClipboardData(CF_UNICODETEXT, hData);
- #else
- SetClipboardData(CF_TEXT, hData);
- #endif
+ SetClipboardData(CF_UNICODETEXT, hData);
CloseClipboard();
SetFocus(GetDlgItem(hwndDlg, IDC_MESSAGE));
break;
@@ -2490,9 +2482,7 @@ LABEL_SHOWWINDOW: DoEventHookAsync(hwndDlg, si->ptszID, si->pszModule, GC_USER_MESSAGE, NULL, ptszText, (LPARAM)NULL);
mir_free(pszRtf);
- #if defined( _UNICODE )
- mir_free(ptszText);
- #endif
+ mir_free(ptszText);
SetFocus(GetDlgItem(hwndDlg, IDC_MESSAGE));
}
break;
|