diff options
-rw-r--r-- | protocols/Dummy/src/dummy_proto.cpp | 6 | ||||
-rw-r--r-- | protocols/Dummy/src/dummy_proto.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/protocols/Dummy/src/dummy_proto.cpp b/protocols/Dummy/src/dummy_proto.cpp index 8ac49017eb..2a9ddb1414 100644 --- a/protocols/Dummy/src/dummy_proto.cpp +++ b/protocols/Dummy/src/dummy_proto.cpp @@ -17,9 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h" -char uniqueIdText[100] = { 0 }; -char uniqueIdSetting[100] = { 0 }; - void CDummyProto::SendMsgAck(void *param) { MCONTACT hContact = (MCONTACT)param; @@ -39,6 +36,9 @@ CDummyProto::CDummyProto(const char *szModuleName, const TCHAR *ptszUserName) : { CreateProtoService(PS_CREATEACCMGRUI, &CDummyProto::SvcCreateAccMgrUI); + uniqueIdText[0] = '\0'; + uniqueIdSetting[0] = '\0'; + dummy_Instances.insert(this); } diff --git a/protocols/Dummy/src/dummy_proto.h b/protocols/Dummy/src/dummy_proto.h index cffccd2f37..70bdcd0b19 100644 --- a/protocols/Dummy/src/dummy_proto.h +++ b/protocols/Dummy/src/dummy_proto.h @@ -80,4 +80,8 @@ struct CDummyProto : public PROTO<CDummyProto> INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM); void __cdecl SendMsgAck(void *param); + + char uniqueIdText[100]; + char uniqueIdSetting[100]; + }; |