diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-15 18:52:16 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-15 18:52:16 +0000 |
commit | 58973a21a30bf95427fd43c456e41e35c386218c (patch) | |
tree | 1413fba069ecd351b2c99fa5a53e52c68d8a662c /plugins/Console/Console.c | |
parent | 55b5cf8a5506f03350e5c80ac86f5717425e4d10 (diff) |
another portion of "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@434 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Console/Console.c')
-rw-r--r-- | plugins/Console/Console.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/plugins/Console/Console.c b/plugins/Console/Console.c index 7692260239..f6c451b5dd 100644 --- a/plugins/Console/Console.c +++ b/plugins/Console/Console.c @@ -602,11 +602,7 @@ static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARA pchData = (TCHAR*)GlobalLock(hClipboardData);
_tcscpy(pchData, buf);
GlobalUnlock(hClipboardData);
- #ifdef UNICODE
- SetClipboardData(CF_UNICODETEXT,hClipboardData);
- #else
- SetClipboardData(CF_TEXT,hClipboardData);
- #endif
+ SetClipboardData(CF_UNICODETEXT,hClipboardData);
}
CloseClipboard();
}
@@ -790,14 +786,11 @@ static INT_PTR CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,L {
tci.mask = TCIF_PARAM | TCIF_TEXT;
tci.lParam = (LPARAM)lw;
-#ifdef _UNICODE
+
tci.pszText = mir_a2u(lw->Module);
idx = TabCtrl_InsertItem(hTabs, tabCount, &tci);
mir_free(tci.pszText);
-#else
- tci.pszText = lw->Module;
- idx = TabCtrl_InsertItem(hTabs, tabCount, &tci);
-#endif
+
tabCount++;
}
@@ -1067,7 +1060,6 @@ static int OnFastDump(WPARAM wParam,LPARAM lParam) strncpy(dumpMsg->szModule, ((NETLIBUSER*)wParam)->szDescriptiveName, sizeof(dumpMsg->szModule))[ sizeof(dumpMsg->szModule)-1 ] = 0;
-#ifdef _UNICODE
{
wchar_t *ucs2;
@@ -1083,13 +1075,7 @@ static int OnFastDump(WPARAM wParam,LPARAM lParam) wcscat( str, ucs2 );
mir_free( ucs2 );
}
-#else
- memcpy( str, logMsg->pszHead, headlen );
- memcpy( str + headlen, logMsg->pszMsg, msglen + 1 );
- // try to detect utf8
- mir_utf8decode( str + headlen, NULL );
-#endif
InMsgs++;
PostMessage(hwndConsole, HM_DUMP, 0, (LPARAM)dumpMsg);
}
|