summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/dialogs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-18 14:07:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-18 14:07:14 +0300
commit406f0e4a4f42979778757243ed29c2753cbb1107 (patch)
treee4b9a02689c3c38ab9f53924faec3204e3ff2254 /protocols/Facebook/src/dialogs.cpp
parentdc1d550fc8d2bc39a3f1b371f4dedbd045576c35 (diff)
Facebook:
- normal behaviour of ServerThread(); - added OnLoggedIn() function; - correct OnShutdown() processing; - DBKEY_USERNAME replaced with DBKEY_LOGIN to provide compatibility with the old protocol
Diffstat (limited to 'protocols/Facebook/src/dialogs.cpp')
-rw-r--r--protocols/Facebook/src/dialogs.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Facebook/src/dialogs.cpp b/protocols/Facebook/src/dialogs.cpp
index 4e544e729b..01206706de 100644
--- a/protocols/Facebook/src/dialogs.cpp
+++ b/protocols/Facebook/src/dialogs.cpp
@@ -22,8 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
-
-
INT_PTR CALLBACK FBAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
{
FacebookProto *proto = reinterpret_cast<FacebookProto*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
@@ -37,7 +35,7 @@ INT_PTR CALLBACK FBAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lp
proto = reinterpret_cast<FacebookProto*>(lparam);
SetWindowLongPtr(hwnd, GWLP_USERDATA, lparam);
- ptrA login(db_get_sa(0, proto->ModuleName(), DBKEY_USERNAME));
+ ptrA login(db_get_sa(0, proto->ModuleName(), DBKEY_LOGIN));
if (login != nullptr)
SetDlgItemTextA(hwnd, IDC_UN, login);
@@ -66,7 +64,7 @@ INT_PTR CALLBACK FBAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lp
char str[128];
GetDlgItemTextA(hwnd, IDC_UN, str, _countof(str));
- db_set_s(0, proto->ModuleName(), DBKEY_USERNAME, str);
+ db_set_s(0, proto->ModuleName(), DBKEY_LOGIN, str);
GetDlgItemTextA(hwnd, IDC_PW, str, _countof(str));
db_set_s(0, proto->ModuleName(), DBKEY_PASS, str);