summaryrefslogtreecommitdiff
path: root/plugins/Chat/tools.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-24 12:33:43 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-24 12:33:43 +0000
commit6d99499879c434f212f4c02e751f730eca610983 (patch)
tree45fe6c186a4b89b1b0565a321b9ce4f166b873a8 /plugins/Chat/tools.cpp
parent7a6399d054da0e2e21d00b110b885e15b278d3b7 (diff)
Chat:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Chat/tools.cpp')
-rw-r--r--plugins/Chat/tools.cpp9
1 files changed, 4 insertions, 5 deletions
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;