diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-15 14:52:01 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-15 14:52:01 +0300 |
commit | cb1787afbb67184321f206f13f836b63cd06740a (patch) | |
tree | 0e9f9701642fd1cc9bfb63dfba9eb72dad72d383 /src | |
parent | a232c39b9e45a77e14326511112b70d3dc405105 (diff) |
PROTO_INTERFACE::SendMsg - unused parameter flags removed
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/mir_app.def | 2 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 2 | ||||
-rw-r--r-- | src/mir_app/src/proto_interface.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/proto_internal.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/protocols.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index 08989886ce..f53ffc745c 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -63,7 +63,7 @@ Button_SetSkin_IcoLib @24 ?SearchByName@PROTO_INTERFACE@@UAEPAXPB_W00@Z @65 NONAME
?SendContacts@PROTO_INTERFACE@@UAEHIHHPAI@Z @66 NONAME
?SendFile@PROTO_INTERFACE@@UAEPAXIPB_WPAPA_W@Z @67 NONAME
-?SendMsg@PROTO_INTERFACE@@UAEHIHPBD@Z @68 NONAME
+?SendMsg@PROTO_INTERFACE@@UAEHIPBD@Z @68 NONAME
?SetApparentMode@PROTO_INTERFACE@@UAEHIH@Z @70 NONAME
?SetAwayMsg@PROTO_INTERFACE@@UAEHHPB_W@Z @71 NONAME
?SetStatus@PROTO_INTERFACE@@UAEHH@Z @72 NONAME
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index d15c8b7a46..e10960fe1b 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -63,7 +63,7 @@ Button_SetSkin_IcoLib @24 ?SearchByName@PROTO_INTERFACE@@UEAAPEAXPEB_W00@Z @65 NONAME
?SendContacts@PROTO_INTERFACE@@UEAAHIHHPEAI@Z @66 NONAME
?SendFile@PROTO_INTERFACE@@UEAAPEAXIPEB_WPEAPEA_W@Z @67 NONAME
-?SendMsg@PROTO_INTERFACE@@UEAAHIHPEBD@Z @68 NONAME
+?SendMsg@PROTO_INTERFACE@@UEAAHIPEBD@Z @68 NONAME
?SetApparentMode@PROTO_INTERFACE@@UEAAHIH@Z @70 NONAME
?SetAwayMsg@PROTO_INTERFACE@@UEAAHHPEB_W@Z @71 NONAME
?SetStatus@PROTO_INTERFACE@@UEAAHH@Z @72 NONAME
diff --git a/src/mir_app/src/proto_interface.cpp b/src/mir_app/src/proto_interface.cpp index 716cc7bb29..0f3b2e12d5 100644 --- a/src/mir_app/src/proto_interface.cpp +++ b/src/mir_app/src/proto_interface.cpp @@ -254,7 +254,7 @@ HANDLE PROTO_INTERFACE::SendFile(MCONTACT, const wchar_t*, wchar_t**) return nullptr; // error
}
-int PROTO_INTERFACE::SendMsg(MCONTACT, int, const char*)
+int PROTO_INTERFACE::SendMsg(MCONTACT, const char*)
{
return 0; // error
}
diff --git a/src/mir_app/src/proto_internal.cpp b/src/mir_app/src/proto_internal.cpp index 85ee586a92..b8d0cabb5c 100644 --- a/src/mir_app/src/proto_internal.cpp +++ b/src/mir_app/src/proto_internal.cpp @@ -209,7 +209,7 @@ struct DEFAULT_PROTO_INTERFACE : public PROTO_INTERFACE return res;
}
- int SendMsg(MCONTACT hContact, int /*flags*/, const char *msg) override
+ int SendMsg(MCONTACT hContact, const char *msg) override
{
CCSDATA ccs = { hContact, PSS_MESSAGE, 0, (LPARAM)msg };
return (int)ProtoCallService(m_szModuleName, PSS_MESSAGE, 0, (LPARAM)&ccs);
diff --git a/src/mir_app/src/protocols.cpp b/src/mir_app/src/protocols.cpp index bafd0d0d04..6a472ee64e 100644 --- a/src/mir_app/src/protocols.cpp +++ b/src/mir_app/src/protocols.cpp @@ -425,7 +425,7 @@ INT_PTR CallProtoServiceInt(MCONTACT hContact, const char *szModule, const char case 23: return (INT_PTR)ppi->SendContacts(hContact, LOWORD(wParam), HIWORD(wParam), (MCONTACT *)lParam);
case 24: return (INT_PTR)ppi->SendFile(hContact, (wchar_t *)wParam, (wchar_t **)lParam);
case 25: {
- int msgId = ppi->SendMsg(hContact, wParam, (const char *)lParam);
+ int msgId = ppi->SendMsg(hContact, (const char *)lParam);
if (msgId == -1) {
ppi->ProtoBroadcastAsync(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, (HANDLE)-1, (LPARAM)TranslateT("Protocol is offline"));
return -1;
|