From ffeae3b58ae49397f62cb733c77f565ac4070223 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Nov 2012 18:24:10 +0000 Subject: various code cleaning considering protocols' declarations git-svn-id: http://svn.miranda-ng.org/main/trunk@2509 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'protocols/Tlen') diff --git a/protocols/Tlen/src/tlen.cpp b/protocols/Tlen/src/tlen.cpp index 0267dd5bb5..d8a0a00652 100644 --- a/protocols/Tlen/src/tlen.cpp +++ b/protocols/Tlen/src/tlen.cpp @@ -495,8 +495,6 @@ static int tlenProtoUninit( TlenProtocol* ppro ) extern "C" int __declspec(dllexport) Load(void) { - PROTOCOLDESCRIPTOR pd; - mir_getLP( &pluginInfoEx ); DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &hMainThread, THREAD_SET_CONTEXT, FALSE, 0); @@ -506,8 +504,7 @@ extern "C" int __declspec(dllexport) Load(void) TlenRegisterIcons(); // Register protocol module - ZeroMemory(&pd, sizeof(PROTOCOLDESCRIPTOR)); - pd.cbSize = sizeof(PROTOCOLDESCRIPTOR); + PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; pd.szName = "TLEN"; pd.fnInit = ( pfnInitProto )tlenProtoInit; pd.fnUninit = ( pfnUninitProto )tlenProtoUninit; -- cgit v1.2.3