From 6941b13721285765d6b8df94c1c87d4f78b8be68 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 8 Jan 2014 15:51:52 +0000 Subject: chat structures slightly cleaned (no changes so far) git-svn-id: http://svn.miranda-ng.org/main/trunk@7547 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/chat/tools.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Scriver/src/chat/tools.cpp') diff --git a/plugins/Scriver/src/chat/tools.cpp b/plugins/Scriver/src/chat/tools.cpp index 1f8dcc3389..90f9f447ad 100644 --- a/plugins/Scriver/src/chat/tools.cpp +++ b/plugins/Scriver/src/chat/tools.cpp @@ -755,7 +755,7 @@ BOOL DoEventHookAsync(HWND hwnd, const TCHAR* pszID, const char* pszModule, int return FALSE; if (!(si->dwFlags & GC_UNICODE)) { - gcd->pszID = mir_t2a(pszID); + gcd->ptszID = (LPTSTR)mir_t2a(pszID); gch->pszUID = mir_t2a(pszUID); gch->pszText = mir_t2a(pszText); } @@ -783,7 +783,7 @@ BOOL DoEventHook(const TCHAR* pszID, const char* pszModule, int iType, const TCH return FALSE; if (!(si->dwFlags & GC_UNICODE)) { - gcd.pszID = mir_t2a(pszID); + gcd.ptszID = (LPTSTR)mir_t2a(pszID); gch.pszUID = mir_t2a(pszUID); gch.pszText = mir_t2a(pszText); } @@ -798,7 +798,7 @@ BOOL DoEventHook(const TCHAR* pszID, const char* pszModule, int iType, const TCH gch.pDest = &gcd; NotifyEventHooks(hSendEvent, 0, (WPARAM)&gch); - mir_free(gcd.pszID); + mir_free(gcd.ptszID); mir_free(gch.ptszUID); mir_free(gch.ptszText); return TRUE; -- cgit v1.2.3