summaryrefslogtreecommitdiff
path: root/SecureIM/commonheaders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SecureIM/commonheaders.cpp')
-rw-r--r--SecureIM/commonheaders.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/SecureIM/commonheaders.cpp b/SecureIM/commonheaders.cpp
index aa6c454..e3b51a0 100644
--- a/SecureIM/commonheaders.cpp
+++ b/SecureIM/commonheaders.cpp
@@ -1,8 +1,6 @@
#include "commonheaders.h"
HINSTANCE g_hInst, g_hIconInst;
-PLUGINLINK *pluginLink;
-MM_INTERFACE mmi = {0};
MUUID interfaces[] = {MIID_SECUREIM, MIID_LAST};
LPCSTR szModuleName = MODULENAME;
@@ -28,19 +26,6 @@ BYTE bADV, bPGP, bGPG;
DWORD iCoreVersion = 0;
CRITICAL_SECTION localQueueMutex;
-PLUGININFO pluginInfo = {
- sizeof(PLUGININFO),
- MODULENAME" (2in1)",
- __VERSION_DWORD,
- MODULENAME" plugin for Miranda IM ("__DATE__")",
- "Johell, Ghost, Nightwish, __alex, Baloo",
- "Johell@ifrance.com, baloo@bk.ru",
- "© 2003 Johell, © 2005-09 Baloo",
- "http://addons.miranda-im.org/details.php?action=viewfile&id=2445",
- 0, 0
-};
-
-
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
MODULENAME" (2in1)",
@@ -70,7 +55,7 @@ LPSTR myDBGetString(HANDLE hContact,const char *szModule,const char *szSetting)
LPSTR myDBGetStringDecode(HANDLE hContact,const char *szModule,const char *szSetting) {
char *val = myDBGetString(hContact,szModule,szSetting);
if(!val) return NULL;
- int len = strlen(val)+64;
+ size_t len = strlen(val)+64;
char *buf = (LPSTR)mir_alloc(len);
strncpy(buf,val,len); mir_free(val);
CallService(MS_DB_CRYPT_DECODESTRING,(WPARAM)len,(LPARAM)buf);