From 6d99499879c434f212f4c02e751f730eca610983 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 24 Jun 2012 12:33:43 +0000 Subject: Chat: plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Chat/tools.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/Chat/tools.cpp') diff --git a/plugins/Chat/tools.cpp b/plugins/Chat/tools.cpp index ef24f40a13..fa8f28ead3 100644 --- a/plugins/Chat/tools.cpp +++ b/plugins/Chat/tools.cpp @@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern HICON hIcons[30]; extern BOOL PopUpInstalled; -extern HINSTANCE g_hInst; extern FONTINFO aFonts[OPTIONS_FONTCOUNT]; extern HMENU g_hMenu; extern HANDLE hBuildMenuEvent ; @@ -162,7 +161,7 @@ static int ShowPopup (HANDLE hContact, SESSION_INFO* si, HICON hIcon, char* psz pd.colorText = crBkg; } - pd.PluginWindowProc = PopupDlgProc; + pd.PluginWindowProc = (WNDPROC)PopupDlgProc; pd.PluginData = si; return PUAddPopUpT(&pd); } @@ -477,9 +476,9 @@ BOOL IsHighlighted(SESSION_INFO* si, const TCHAR* pszText) p3 += 1; //find the end of the word - p2 = _tcschr(p3, ' '); + p2 = (TCHAR *)_tcschr(p3, ' '); if (!p2) - p2 = _tcschr(p3, '\0'); + p2 = (TCHAR *)_tcschr(p3, '\0'); if (p3 != p2) { @@ -657,7 +656,7 @@ BOOL LogToFile(SESSION_INFO* si, GCEVENT * gce) hFile = NULL; // trim to whole lines, should help with broken log files I hope. - pBufferTemp = strchr(pBuffer, '\n'); + pBufferTemp = (BYTE *)strchr((char *)pBuffer, '\n'); if ( pBufferTemp ) { pBufferTemp++; read -= pBufferTemp - pBuffer; -- cgit v1.2.3