diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-26 18:24:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-26 18:24:10 +0000 |
commit | ffeae3b58ae49397f62cb733c77f565ac4070223 (patch) | |
tree | 2c037284535c00a08069adcb1a1ef16e44889d4a /protocols/Tlen | |
parent | 944753ba4f0e2b924215fab81e72abb933942df3 (diff) |
various code cleaning considering protocols' declarations
git-svn-id: http://svn.miranda-ng.org/main/trunk@2509 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tlen')
-rw-r--r-- | protocols/Tlen/src/tlen.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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;
|