summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/ircproto.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-07-03 13:01:58 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-07-03 13:01:58 +0000
commit5b0aff0fd05fea158d299362fd83bf6ed9e3953f (patch)
treefda43c5ee1b68324761bfbe7fb78367a2c8a81e2 /protocols/IRCG/src/ircproto.cpp
parent1ac5dafa951f57dfca5cf0dd6e7d2eeeea2f6772 (diff)
IRC: Fixed deleting void pointer
git-svn-id: http://svn.miranda-ng.org/main/trunk@14484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG/src/ircproto.cpp')
-rw-r--r--protocols/IRCG/src/ircproto.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp
index 26601b2d0f..9504b70bc9 100644
--- a/protocols/IRCG/src/ircproto.cpp
+++ b/protocols/IRCG/src/ircproto.cpp
@@ -478,12 +478,12 @@ struct AckBasicSearchParam
TCHAR buf[50];
};
-void __cdecl CIrcProto::AckBasicSearch(void* param)
+void __cdecl CIrcProto::AckBasicSearch(void *arg)
{
+ AckBasicSearchParam *param = (AckBasicSearchParam*)arg;
PROTOSEARCHRESULT psr = { sizeof(psr) };
psr.flags = PSR_TCHAR;
- psr.id.t = ((AckBasicSearchParam*)param)->buf;
- psr.nick.t = ((AckBasicSearchParam*)param)->buf;
+ psr.id.t = psr.nick.t = param->buf;
ProtoBroadcastAck(NULL, ACKTYPE_SEARCH, ACKRESULT_DATA, (HANDLE)1, (LPARAM)& psr);
ProtoBroadcastAck(NULL, ACKTYPE_SEARCH, ACKRESULT_SUCCESS, (HANDLE)1, 0);
delete param;