From a346491026d5df1ffe0d41e4881613a47ca6ca47 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Apr 2013 14:25:52 +0000 Subject: end of the city legend that PSS_MESSAGEW ever existed git-svn-id: http://svn.miranda-ng.org/main/trunk@4482 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../CyrTranslit/src/TransliterationProtocol.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'plugins/CyrTranslit/src/TransliterationProtocol.cpp') diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp index ecb650571f..dc75e17dbf 100644 --- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp +++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp @@ -33,8 +33,7 @@ void TransliterationProtocol::initialize() pd.type = PROTOTYPE_TRANSLATION; CallService(MS_PROTO_REGISTERMODULE, 0, reinterpret_cast(&pd)); - CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE, sendMessageA); - CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE"W", sendMessageW); + CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE, sendMessage); } //------------------------------------------------------------------------------ @@ -90,26 +89,9 @@ void TransliterationProtocol::TranslateMessageA(WPARAM wParam, LPARAM lParam) strcpy(reinterpret_cast(ccs->lParam), txt.c_str()); } -INT_PTR TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam) -{ - CCSDATA *ccs = reinterpret_cast(lParam); - if ( !MirandaContact::bIsActive(ccs->hContact)) - return CallService(MS_PROTO_CHAINSEND, wParam, lParam); - - LPARAM oldlParam = ccs->lParam; - - TranslateMessageW(wParam, lParam); - - int ret = CallService(MS_PROTO_CHAINSEND /* "W" */, wParam, lParam); - - mir_free(reinterpret_cast(ccs->lParam)); - ccs->lParam = oldlParam; - - return ret; -} //------------------------------------------------------------------------------ -INT_PTR TransliterationProtocol::sendMessageA(WPARAM wParam, LPARAM lParam) +INT_PTR TransliterationProtocol::sendMessage(WPARAM wParam, LPARAM lParam) { CCSDATA *ccs = reinterpret_cast(lParam); if ( !MirandaContact::bIsActive(ccs->hContact)) -- cgit v1.2.3