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 /plugins/FileAsMessage | |
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 'plugins/FileAsMessage')
-rw-r--r-- | plugins/FileAsMessage/src/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/FileAsMessage/src/main.cpp b/plugins/FileAsMessage/src/main.cpp index 044e1f4ace..14a905a9b8 100644 --- a/plugins/FileAsMessage/src/main.cpp +++ b/plugins/FileAsMessage/src/main.cpp @@ -256,9 +256,7 @@ extern "C" __declspec(dllexport) int Load(void) CreateServiceFunction(SERVICE_NAME "/FESendFile", OnSendFile);
CreateServiceFunction(SERVICE_NAME "/FERecvFile", OnRecvFile);
- PROTOCOLDESCRIPTOR pd;
- memset(&pd, 0, sizeof( PROTOCOLDESCRIPTOR));
- pd.cbSize = sizeof(PROTOCOLDESCRIPTOR);
+ PROTOCOLDESCRIPTOR pd = { sizeof(pd) };
pd.szName = SERVICE_NAME;
pd.type = PROTOTYPE_FILTER;
CallService(MS_PROTO_REGISTERMODULE, 0, ( LPARAM ) &pd);
|