summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-20 18:06:54 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-20 18:06:54 +0300
commit3aeaeb4d46c0913d35fe3731d9e7b4e8c7e17526 (patch)
tree7d9942c3adb1376d657001589430545df94b1569
parentaf01f3cd2458d91df093ec7e10789a7a03d38661 (diff)
modified: jabber_account.cpp
modified: utilities.cpp
-rw-r--r--jabber_account.cpp3
-rw-r--r--utilities.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/jabber_account.cpp b/jabber_account.cpp
index 836ff03..44c2d0b 100644
--- a/jabber_account.cpp
+++ b/jabber_account.cpp
@@ -53,6 +53,9 @@ HANDLE JabberAccount::getSendHandler()
JabberAccount::JabberAccount()
{
AccountName = NULL;
+ hSendHandler = INVALID_HANDLE_VALUE;
+ AccountNumber = -1;
+ JabberInterface = INVALID_HANDLE_VALUE;
}
JabberAccount::~JabberAccount()
{
diff --git a/utilities.cpp b/utilities.cpp
index b658e57..9886fc3 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -324,7 +324,6 @@ int GetJabberInterface(WPARAM w, LPARAM l) //get interface for all jabber accoun
(*p)->setAccountName(tmp);
}
(*p)->setAccountNumber(a);
- (*p)->setSendHandler(INVALID_HANDLE_VALUE);
a++;
Accounts.push_back(new JabberAccount);
p++;