diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-24 20:20:56 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-24 20:20:56 +0000 |
commit | 1b33fad341b6eae6f3f377e67b91ed81b845269a (patch) | |
tree | e3eb972e370b65811c8cb11ee09fb0701d38f81b /plugins/Non-IM Contact/src/main.cpp | |
parent | f95c6ed55da24f45ea3cf15d3802d6ca686c16a2 (diff) |
Non-IM-Contacts:
-Many memory issues fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11900 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact/src/main.cpp')
-rw-r--r-- | plugins/Non-IM Contact/src/main.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/Non-IM Contact/src/main.cpp b/plugins/Non-IM Contact/src/main.cpp index 0d5247dc58..6452e85981 100644 --- a/plugins/Non-IM Contact/src/main.cpp +++ b/plugins/Non-IM Contact/src/main.cpp @@ -31,7 +31,7 @@ INT_PTR doubleClick(WPARAM wParam,LPARAM lParam) char* proto = GetContactProto(wParam);
if (proto && !strcmp(proto, MODNAME)) {
if (GetKeyState(VK_CONTROL)&0x8000) // ctrl is pressed
- editContact((WPARAM)(HANDLE)wParam, (LPARAM)NULL); // for later when i add a second double click setting
+ editContact(wParam, 0); // for later when i add a second double click setting
else if (db_get_static(wParam, MODNAME, "Program", program) && strcmp(program, ""))
{
if (!db_get_static(wParam, MODNAME, "ProgramParams", params) )
@@ -42,7 +42,7 @@ INT_PTR doubleClick(WPARAM wParam,LPARAM lParam) if (shellEXEerror == ERROR_FILE_NOT_FOUND || shellEXEerror == ERROR_PATH_NOT_FOUND)
CallService(MS_UTILS_OPENURL,OUF_NEWWINDOW,(LPARAM)program);
}
- else editContact((WPARAM)(HANDLE)wParam, (LPARAM)NULL);
+ else editContact(wParam, 0);
return 1;
}
return 0;
@@ -60,7 +60,7 @@ int LCStatus = ID_STATUS_OFFLINE; // Returns : int
// Description : Called at very beginning of plugin
//=====================================================
-int NimcOptInit(WPARAM wParam,LPARAM lParam)
+int NimcOptInit(WPARAM wParam,LPARAM)
{
OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.hInstance = hInst;
@@ -71,12 +71,6 @@ int NimcOptInit(WPARAM wParam,LPARAM lParam) Options_AddPage(wParam, &odp);
return 0;
}
-
-int MainInit(WPARAM wparam,LPARAM lparam)
-{
- return 0;
-}
-
//=====================================================
// Name : __declspec(dllexport) PLUGININFO* MirandaPluginInfo
// Parameters: (DWORD mirandaVersion)
|