From 460530f613eefe29e9204df6838897ccfd4c2d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 24 Sep 2014 12:01:14 +0000 Subject: Dummy: Fix settings for more dummy accounts git-svn-id: http://svn.miranda-ng.org/main/trunk@10571 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Dummy/src/dummy_proto.cpp | 6 +++--- protocols/Dummy/src/dummy_proto.h | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'protocols') 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 . #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 INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM); void __cdecl SendMsgAck(void *param); + + char uniqueIdText[100]; + char uniqueIdSetting[100]; + }; -- cgit v1.2.3