From 5b0aff0fd05fea158d299362fd83bf6ed9e3953f Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 3 Jul 2015 13:01:58 +0000 Subject: IRC: Fixed deleting void pointer git-svn-id: http://svn.miranda-ng.org/main/trunk@14484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/src/ircproto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/IRCG/src') 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; -- cgit v1.2.3