diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-31 21:02:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-31 21:02:26 +0000 |
commit | e48bae4c6ccf1003916b3960f30816ce8aaa955b (patch) | |
tree | a69a0e638db00a3f2af4581a6440178bb9893971 /plugins/SecureIM/src/svcs_proto.cpp | |
parent | 6cb654fab7272163d2330cf41de542e1ccba71c8 (diff) |
- additional operator LPARAM() for _A2T & _T2A;
- we don't need StrConvA anymore;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@13952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/svcs_proto.cpp')
-rw-r--r-- | plugins/SecureIM/src/svcs_proto.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SecureIM/src/svcs_proto.cpp b/plugins/SecureIM/src/svcs_proto.cpp index e1b9d45e13..13a3ee9445 100644 --- a/plugins/SecureIM/src/svcs_proto.cpp +++ b/plugins/SecureIM/src/svcs_proto.cpp @@ -234,7 +234,7 @@ INT_PTR __cdecl onRecvMsg(WPARAM wParam, LPARAM lParam) CallService(MS_PROTO_CHAINSEND, wParam, lParam); // send back cipher message
ptrA keyToSend(InitKeyA(ptr, 0)); // calculate public and private key
- pccsd->lParam = (LPARAM)(char*)keyToSend;
+ pccsd->lParam = keyToSend;
CallService(MS_PROTO_CHAINSEND, wParam, lParam); // send new key
showPopup(sim005, NULL, g_hPOP[POP_PU_DIS], 0);
@@ -394,7 +394,7 @@ INT_PTR __cdecl onRecvMsg(WPARAM wParam, LPARAM lParam) Sent_NetLog("onRecvMsg: Sending KEYB %s", keyToSend);
pccsd->wParam |= PREF_METANODB;
- pccsd->lParam = (LPARAM)keyToSend;
+ pccsd->lParam = keyToSend;
pccsd->szProtoService = PSS_MESSAGE;
CallService(MS_PROTO_CHAINSEND, wParam, lParam);
}
@@ -450,7 +450,7 @@ INT_PTR __cdecl onRecvMsg(WPARAM wParam, LPARAM lParam) // SendMsg handler
INT_PTR __cdecl onSendMsg(WPARAM wParam, LPARAM lParam)
{
- CCSDATA *pccsd = (CCSDATA *)lParam;
+ CCSDATA *pccsd = (CCSDATA*)lParam;
pUinKey ptr = getUinKey(pccsd->hContact);
int ssig = getSecureSig((LPCSTR)pccsd->lParam);
int stat = getContactStatus(pccsd->hContact);
@@ -713,7 +713,7 @@ INT_PTR __cdecl onSendMsg(WPARAM wParam, LPARAM lParam) Sent_NetLog("onSend: encrypted msg '%s'", szNewMsg);
pccsd->wParam |= PREF_METANODB;
- pccsd->lParam = (LPARAM)(char*)szNewMsg;
+ pccsd->lParam = szNewMsg;
pccsd->szProtoService = PSS_MESSAGE;
int ret = CallService(MS_PROTO_CHAINSEND, wParam, lParam);
|