From af85cadd9f8bfbe604baadbec44878098dcd3ec5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 18:12:57 +0000 Subject: PREF_UNICODE & PREF_UTF removed from pascal sources git-svn-id: http://svn.miranda-ng.org/main/trunk@13787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Watrack/proto/proto.pas | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'plugins/Watrack') diff --git a/plugins/Watrack/proto/proto.pas b/plugins/Watrack/proto/proto.pas index 7dcc2e68d8..4ee38f79b3 100644 --- a/plugins/Watrack/proto/proto.pas +++ b/plugins/Watrack/proto/proto.pas @@ -217,7 +217,6 @@ var data:PByte; dataSize:int; encodedStr:PAnsiChar; -// pos_artist,pos_title,pos_album:PwideChar; pos_template:pWideChar; curpos:pWideChar; encbuf:pWideChar; @@ -310,17 +309,16 @@ begin if (HistMask and hmOutInfo)<>0 then AddEvent(ccs^.hContact,EVENTTYPE_WAT_ANSWER,DBEF_SENT,data,dataSize); CallContactService(ccs^.hContact,PSS_MESSAGE,0,tlparam(encbuf)); + mFreeMem(encbuf); end else begin - i:=WideToCombo(textpos,encbuf,UserCP); + WideToUTF8(textpos,encodedStr); if (HistMask and hmOutInfo)<>0 then - AddEvent(ccs^.hContact,EVENTTYPE_WAT_MESSAGE,DBEF_SENT,encbuf,i); -// if CallContactService(ccs^.hContact,PSS_MESSAGEW,PREF_UNICODE,tlparam(encbuf))= -// ACKRESULT_FAILED then - CallContactService(ccs^.hContact,PSS_MESSAGE,PREF_UNICODE,tlparam(encbuf)); + AddEvent(ccs^.hContact,EVENTTYPE_WAT_MESSAGE,DBEF_SENT or DBEF_UTF,encodedStr,StrLen(encodedStr)); + CallContactService(ccs^.hContact,PSS_MESSAGE,0,tlparam(encodedStr)); + mFreeMem(encodedStr); end; - mFreeMem(encbuf); end; end else -- cgit v1.2.3