From abf8cd813bb0ac4f4f5451d2af929279d816abac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Apr 2018 23:04:26 +0300 Subject: core changes: - PROTOCOLDESCRIPTOR's implementation hidden inside mir_app; - Proto_RegisterModule now doesn't need a PROTOCOLDESCRIPTOR structure; - PROTOTYPE_PROTOWITHACCS type added for protos that work with accounts --- protocols/ICQCorp/src/corp.cpp | 6 +----- protocols/ICQCorp/src/stdafx.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'protocols/ICQCorp') diff --git a/protocols/ICQCorp/src/corp.cpp b/protocols/ICQCorp/src/corp.cpp index 38355f466b..523917cb3e 100644 --- a/protocols/ICQCorp/src/corp.cpp +++ b/protocols/ICQCorp/src/corp.cpp @@ -62,11 +62,7 @@ BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD reason, LPVOID) findData.cFileName[strlen(findData.cFileName) - 4] = 0; strncpy_s(protoName, findData.cFileName, _TRUNCATE); - PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE }; - pd.szName = protoName; - pd.type = PROTOTYPE_PROTOCOL; - Proto_RegisterModule(&pd); - + Proto_RegisterModule(PROTOTYPE_PROTOCOL, protoName); Proto_SetUniqueId(protoName, "UIN"); DisableThreadLibraryCalls(hModule); diff --git a/protocols/ICQCorp/src/stdafx.h b/protocols/ICQCorp/src/stdafx.h index 99837f6a28..747f1805bf 100644 --- a/protocols/ICQCorp/src/stdafx.h +++ b/protocols/ICQCorp/src/stdafx.h @@ -37,7 +37,6 @@ #include #include #include -#include #include #include "user.h" -- cgit v1.2.3