From 11fcecff7c310c2cc10bda2ab2fa2daf525be571 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Wed, 13 Mar 2013 08:00:41 +0000 Subject: - another portion of '#ifdef UNICODE' clean up git-svn-id: http://svn.miranda-ng.org/main/trunk@3993 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/src/browser/mailbrowser.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'plugins/YAMN/src/browser') diff --git a/plugins/YAMN/src/browser/mailbrowser.cpp b/plugins/YAMN/src/browser/mailbrowser.cpp index cdbb4e2d3c..0a79b2be62 100644 --- a/plugins/YAMN/src/browser/mailbrowser.cpp +++ b/plugins/YAMN/src/browser/mailbrowser.cpp @@ -1624,11 +1624,9 @@ INT_PTR CALLBACK DlgProcYAMNShowMessage(HWND hDlg,UINT msg,WPARAM wParam,LPARAM else courPos += _stprintf( &buff[courPos], _T("\t%s\r\n"), headvalue); } GlobalUnlock(hData); -#if defined( _UNICODE ) + SetClipboardData(CF_UNICODETEXT,hData); -#else - SetClipboardData(CF_TEXT,hData); -#endif + CloseClipboard(); } } @@ -2411,11 +2409,9 @@ INT_PTR CALLBACK DlgProcYAMNMailBrowser(HWND hDlg,UINT msg,WPARAM wParam,LPARAM courPos += _stprintf(&buff[courPos], _T("%s\t%s\t%s\t%s\r\n"), from, subject, size, date); } GlobalUnlock(hData); -#if defined( _UNICODE ) + SetClipboardData(CF_UNICODETEXT,hData); -#else - SetClipboardData(CF_TEXT,hData); -#endif + CloseClipboard(); } } -- cgit v1.2.3