diff options
Diffstat (limited to 'plugins/WebView')
-rw-r--r-- | plugins/WebView/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/WebView/src/stdafx.h | 1 | ||||
-rw-r--r-- | plugins/WebView/src/webview_services.cpp | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp index a9981b30fe..3df115a69a 100644 --- a/plugins/WebView/src/main.cpp +++ b/plugins/WebView/src/main.cpp @@ -158,7 +158,7 @@ extern "C" int __declspec(dllexport) Load() pd.cbSize = sizeof(pd);
pd.szName = MODULENAME;
pd.type = PROTOTYPE_PROTOCOL;
- CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);
+ Proto_RegisterModule(&pd);
//protocol services
InitServices();
diff --git a/plugins/WebView/src/stdafx.h b/plugins/WebView/src/stdafx.h index 6bf059e385..fbd7b84666 100644 --- a/plugins/WebView/src/stdafx.h +++ b/plugins/WebView/src/stdafx.h @@ -21,7 +21,6 @@ #include <m_clistint.h>
#include <m_clui.h>
#include <m_database.h>
-#include <m_protomod.h>
#include <m_protocols.h>
#include <m_protosvc.h>
#include <m_button.h>
diff --git a/plugins/WebView/src/webview_services.cpp b/plugins/WebView/src/webview_services.cpp index 7f6c29897c..20196b0fd1 100644 --- a/plugins/WebView/src/webview_services.cpp +++ b/plugins/WebView/src/webview_services.cpp @@ -369,7 +369,7 @@ INT_PTR AddToList(WPARAM wParam, LPARAM lParam) } hContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0); - CallService(MS_PROTO_ADDTOCONTACT, hContact, (LPARAM)MODULENAME); + Proto_AddToContact(hContact, MODULENAME); /////////write to db db_set_b(hContact, MODULENAME, ON_TOP_KEY, 0); |