summaryrefslogtreecommitdiff
path: root/plugins/Chat/manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Chat/manager.cpp')
-rw-r--r--plugins/Chat/manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Chat/manager.cpp b/plugins/Chat/manager.cpp
index 82fb61ae7b..1b9ecd9421 100644
--- a/plugins/Chat/manager.cpp
+++ b/plugins/Chat/manager.cpp
@@ -807,7 +807,7 @@ void SM_AddCommand(const TCHAR* pszID, const char* pszModule, const char* lpNewC
SESSION_INFO* pTemp = m_WndList;
while ( pTemp != NULL ) {
if ( lstrcmpi( pTemp->ptszID, pszID ) == 0 && lstrcmpiA( pTemp->pszModule, pszModule ) == 0) { // match
- COMMAND_INFO *node = mir_alloc(sizeof(COMMAND_INFO));
+ COMMAND_INFO *node = (COMMAND_INFO *)mir_alloc(sizeof(COMMAND_INFO));
node->lpCommand = mir_strdup( lpNewCommand );
node->last = NULL; // always added at beginning!
@@ -935,7 +935,7 @@ char* SM_GetUsers(SESSION_INFO* si)
do {
int pLen = lstrlenA(p), nameLen = lstrlen(utemp->pszUID);
if ( pLen + nameLen + 2 > alloced )
- p = mir_realloc( p, alloced += 4096 );
+ p = (char *)mir_realloc( p, alloced += 4096 );
WideCharToMultiByte( CP_ACP, 0, utemp->pszUID, -1, p + pLen, nameLen+1, 0, 0 );
lstrcpyA( p + pLen + nameLen, " " );
@@ -1441,7 +1441,7 @@ BOOL UM_SetStatusEx(USERINFO* pUserList, const TCHAR* pszText, int flags )
pTemp->iStatusEx = 0;
if ( pszText != NULL ) {
- TCHAR* s = _tcsstr( pszText, pTemp->pszUID );
+ TCHAR* s = (TCHAR *)_tcsstr(pszText, pTemp->pszUID);
if ( s ) {
pTemp->iStatusEx = 0;
if ( s == pszText || s[-1] == cDelimiter ) {