diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-12-16 19:08:08 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-12-16 19:08:08 +0000 |
commit | 375155f8dcd69863f1b9a220c5f890596844e99d (patch) | |
tree | 7e2a2662539ac8f6175e71096ffe6607ed5bf2af /protocols/Skype/src/skype_dialogs.cpp | |
parent | 94bb72aca84414a28e556e5fe406eb3bd8cf8567 (diff) |
- reworked message receiving/sending (by another instance)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2756 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_dialogs.cpp')
-rw-r--r-- | protocols/Skype/src/skype_dialogs.cpp | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index 4148d30ad6..9657513d64 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -45,18 +45,15 @@ INT_PTR CALLBACK CSkypeProto::SkypeAccountProc(HWND hwnd, UINT message, WPARAM w {
if (reinterpret_cast<NMHDR*>(lparam)->code == PSN_APPLY) {
proto = reinterpret_cast<CSkypeProto*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
- {
- TCHAR data[128];
- ::mir_free(proto->login);
- GetDlgItemText(hwnd, IDC_SL, data, SIZEOF(data));
- proto->SetSettingString(SKYPE_SETTINGS_LOGIN, data);
- proto->login = ::mir_wstrdup(data);
- }
- {
- char data[128];
- GetDlgItemTextA(hwnd, IDC_PW, data, sizeof(data));
- proto->SetDecodeSettingString(NULL, SKYPE_SETTINGS_PASSWORD, data);
- }
+
+ char data[128];
+ ::mir_free(proto->login);
+ GetDlgItemTextA(hwnd, IDC_SL, data, SIZEOF(data));
+ ::DBWriteContactSettingString(NULL, proto->m_szModuleName, "sid", data);
+ proto->login = ::mir_strdup(data);
+
+ GetDlgItemTextA(hwnd, IDC_PW, data, sizeof(data));
+ proto->SetDecodeSettingString(NULL, SKYPE_SETTINGS_PASSWORD, data);
proto->SetSettingByte("RememberPassword", true);
@@ -118,18 +115,15 @@ INT_PTR CALLBACK CSkypeProto::SkypeOptionsProc(HWND hwnd, UINT message, WPARAM w if (reinterpret_cast<NMHDR*>(lparam)->code == PSN_APPLY)
{
proto = reinterpret_cast<CSkypeProto*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
- {
- wchar_t data[128];
- ::mir_free(proto->login);
- GetDlgItemText(hwnd, IDC_SL, data, SIZEOF(data));
- proto->SetSettingString(SKYPE_SETTINGS_LOGIN, data);
- proto->login = ::mir_wstrdup(data);
- }
- {
- char data[128];
- GetDlgItemTextA(hwnd, IDC_PW, data, sizeof(data));
- proto->SetDecodeSettingString(NULL, SKYPE_SETTINGS_PASSWORD, data);
- }
+
+ char data[128];
+ ::mir_free(proto->login);
+ GetDlgItemTextA(hwnd, IDC_SL, data, SIZEOF(data));
+ ::DBWriteContactSettingString(NULL, proto->m_szModuleName, "sid", data);
+ proto->login = ::mir_strdup(data);
+
+ GetDlgItemTextA(hwnd, IDC_PW, data, sizeof(data));
+ proto->SetDecodeSettingString(NULL, SKYPE_SETTINGS_PASSWORD, data);
proto->SetSettingByte("RememberPassword", true);
|