diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-09-04 08:37:18 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-09-04 08:37:18 +0000 |
commit | 0dff6d10f4b9ec07564411efdd9e7acad1f8242c (patch) | |
tree | 2ba9567b8386f56c3f9b1d88a7a7740e56c6851e /nohtml/filter.cpp | |
parent | 2a17f18d78fe816b2178009004b1c806e55dc095 (diff) |
x64 port
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@468 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'nohtml/filter.cpp')
-rw-r--r-- | nohtml/filter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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;
|