From 0dff6d10f4b9ec07564411efdd9e7acad1f8242c Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Fri, 4 Sep 2009 08:37:18 +0000 Subject: x64 port git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@468 4f64403b-2f21-0410-a795-97e2b3489a10 --- nohtml/common.h | 2 +- nohtml/filter.cpp | 10 +-- nohtml/nohtml_9.sln | 12 +-- nohtml/nohtml_9.vcproj | 223 ++++++++++++++++++++++++++++++++++++++++++++++++- nohtml/options.cpp | 7 +- 5 files changed, 235 insertions(+), 19 deletions(-) diff --git a/nohtml/common.h b/nohtml/common.h index 51486f9..a585065 100644 --- a/nohtml/common.h +++ b/nohtml/common.h @@ -45,7 +45,7 @@ #include #include #include -#include +#include #define MODULE "nohtml" diff --git a/nohtml/filter.cpp b/nohtml/filter.cpp index b29781d..b66c457 100644 --- a/nohtml/filter.cpp +++ b/nohtml/filter.cpp @@ -21,7 +21,7 @@ bool ContactIsOTREncrypted(HANDLE hContact) { return (DBGetContactSettingByte(hContact, "OTR", "Encrypted", 0) != 0); } -int FilterSendMessage(WPARAM wParam, LPARAM lParam) { +INT_PTR FilterSendMessage(WPARAM wParam, LPARAM lParam) { CCSDATA *ccs = (CCSDATA *) lParam; char *old_message = (char *)ccs->lParam; char *buf = 0; @@ -77,13 +77,13 @@ int FilterSendMessage(WPARAM wParam, LPARAM lParam) { } } - int ret = CallService(MS_PROTO_CHAINSEND, wParam, lParam); + INT_PTR ret = CallService(MS_PROTO_CHAINSEND, wParam, lParam); ccs->lParam = (LPARAM)old_message; if(buf) free(buf); return ret; } -int FilterSendMessageW(WPARAM wParam, LPARAM lParam) { +INT_PTR FilterSendMessageW(WPARAM wParam, LPARAM lParam) { CCSDATA *ccs = (CCSDATA *) lParam; if(!(ccs->wParam & PREF_UTF)) ccs->wParam |= PREF_UNICODE; @@ -91,7 +91,7 @@ int FilterSendMessageW(WPARAM wParam, LPARAM lParam) { return FilterSendMessage(wParam, lParam); } -int FilterRecvMessage(WPARAM wParam, LPARAM lParam) { +INT_PTR FilterRecvMessage(WPARAM wParam, LPARAM lParam) { CCSDATA *ccs = (CCSDATA *) lParam; PROTORECVEVENT *pre = (PROTORECVEVENT *) ccs->lParam; char *old_message = pre->szMessage; @@ -172,7 +172,7 @@ int FilterRecvMessage(WPARAM wParam, LPARAM lParam) { } } - int ret = CallService(MS_PROTO_CHAINRECV, wParam, lParam); + INT_PTR ret = CallService(MS_PROTO_CHAINRECV, wParam, lParam); pre->szMessage = old_message; if(buf) free(buf); return ret; diff --git a/nohtml/nohtml_9.sln b/nohtml/nohtml_9.sln index 73bb545..885ea2d 100644 --- a/nohtml/nohtml_9.sln +++ b/nohtml/nohtml_9.sln @@ -5,20 +5,20 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nohtml", "nohtml_9.vcproj", EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug (Unicode)|Win32 = Debug (Unicode)|Win32 Debug|Win32 = Debug|Win32 - Release (Unicode)|Win32 = Release (Unicode)|Win32 + Debug|x64 = Debug|x64 Release|Win32 = Release|Win32 + Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {35961A10-6297-47AA-A6D9-1713389AC5F9}.Debug (Unicode)|Win32.ActiveCfg = Release|Win32 - {35961A10-6297-47AA-A6D9-1713389AC5F9}.Debug (Unicode)|Win32.Build.0 = Release|Win32 {35961A10-6297-47AA-A6D9-1713389AC5F9}.Debug|Win32.ActiveCfg = Debug|Win32 {35961A10-6297-47AA-A6D9-1713389AC5F9}.Debug|Win32.Build.0 = Debug|Win32 - {35961A10-6297-47AA-A6D9-1713389AC5F9}.Release (Unicode)|Win32.ActiveCfg = Release|Win32 - {35961A10-6297-47AA-A6D9-1713389AC5F9}.Release (Unicode)|Win32.Build.0 = Release|Win32 + {35961A10-6297-47AA-A6D9-1713389AC5F9}.Debug|x64.ActiveCfg = Debug|x64 + {35961A10-6297-47AA-A6D9-1713389AC5F9}.Debug|x64.Build.0 = Debug|x64 {35961A10-6297-47AA-A6D9-1713389AC5F9}.Release|Win32.ActiveCfg = Release|Win32 {35961A10-6297-47AA-A6D9-1713389AC5F9}.Release|Win32.Build.0 = Release|Win32 + {35961A10-6297-47AA-A6D9-1713389AC5F9}.Release|x64.ActiveCfg = Release|x64 + {35961A10-6297-47AA-A6D9-1713389AC5F9}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/nohtml/nohtml_9.vcproj b/nohtml/nohtml_9.vcproj index 60d0629..c8208ef 100644 --- a/nohtml/nohtml_9.vcproj +++ b/nohtml/nohtml_9.vcproj @@ -11,6 +11,9 @@ + @@ -39,7 +42,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -180,6 +357,14 @@ UsePrecompiledHeader="1" /> + + + + + + + + + + + + + + +