summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/dialogs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-15 17:43:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-15 17:43:23 +0000
commitb43dcf000f703e3ef421350f74208cf4c7cdea77 (patch)
treeb4c4de1422fd5f6945f2f71c649a28f45d614fd7 /protocols/Gadu-Gadu/dialogs.cpp
parent3b3200e91d1c76f0fdd6565c3c3bc1824d1a4a03 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@979 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/dialogs.cpp')
-rw-r--r--protocols/Gadu-Gadu/dialogs.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Gadu-Gadu/dialogs.cpp b/protocols/Gadu-Gadu/dialogs.cpp
index 6a626f2d55..345624715b 100644
--- a/protocols/Gadu-Gadu/dialogs.cpp
+++ b/protocols/Gadu-Gadu/dialogs.cpp
@@ -160,7 +160,7 @@ void GGPROTO::checknewuser(uin_t uin, const char* passwd)
{
char oldpasswd[128];
DBVARIANT dbv;
- uin_t olduin = (uin_t)db_get_b(NULL, m_szModuleName, GG_KEY_UIN, 0);
+ uin_t olduin = (uin_t)db_get_dw(NULL, m_szModuleName, GG_KEY_UIN, 0);
oldpasswd[0] = '\0';
if (!db_get_s(NULL, m_szModuleName, GG_KEY_PASSWORD, &dbv, DBVT_ASCIIZ))
@@ -215,7 +215,7 @@ static INT_PTR CALLBACK gg_genoptsdlgproc(HWND hwndDlg, UINT msg, WPARAM wParam,
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)lParam);
TranslateDialogDefault(hwndDlg);
- if (num = db_get_b(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
+ if (num = db_get_dw(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
{
SetDlgItemTextA(hwndDlg, IDC_UIN, ditoa(num));
ShowWindow(GetDlgItem(hwndDlg, IDC_CREATEACCOUNT), SW_HIDE);
@@ -383,7 +383,7 @@ static INT_PTR CALLBACK gg_genoptsdlgproc(HWND hwndDlg, UINT msg, WPARAM wParam,
ShowWindow(GetDlgItem(hwndDlg, IDC_RELOADREQD), SW_SHOW);
// Update uin
- if (num = db_get_b(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
+ if (num = db_get_dw(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
SetDlgItemTextA(hwndDlg, IDC_UIN, ditoa(num));
else
SetDlgItemTextA(hwndDlg, IDC_UIN, "");
@@ -442,7 +442,7 @@ static INT_PTR CALLBACK gg_genoptsdlgproc(HWND hwndDlg, UINT msg, WPARAM wParam,
GetDlgItemTextA(hwndDlg, IDC_PASSWORD, str, sizeof(str));
CallService(MS_DB_CRYPT_ENCODESTRING, sizeof(str), (LPARAM) str);
gg->checknewuser(uin, str);
- db_set_w(NULL, gg->m_szModuleName, GG_KEY_UIN, uin);
+ db_set_dw(NULL, gg->m_szModuleName, GG_KEY_UIN, uin);
db_set_s(NULL, gg->m_szModuleName, GG_KEY_PASSWORD, str);
// Write Gadu-Gadu email
@@ -923,7 +923,7 @@ INT_PTR CALLBACK gg_acc_mgr_guidlgproc(HWND hwndDlg, UINT msg, WPARAM wParam, LP
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)lParam);
TranslateDialogDefault(hwndDlg);
- if (num = db_get_b(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
+ if (num = db_get_dw(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
SetDlgItemTextA(hwndDlg, IDC_UIN, ditoa(num));
if (!db_get_s(NULL, gg->m_szModuleName, GG_KEY_PASSWORD, &dbv, DBVT_ASCIIZ)) {
CallService(MS_DB_CRYPT_DECODESTRING, strlen(dbv.pszVal) + 1, (LPARAM) dbv.pszVal);
@@ -962,7 +962,7 @@ INT_PTR CALLBACK gg_acc_mgr_guidlgproc(HWND hwndDlg, UINT msg, WPARAM wParam, LP
ShowWindow(GetDlgItem(hwndDlg, IDC_RELOADREQD), SW_SHOW);
// Update uin
- if (num = db_get_b(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
+ if (num = db_get_dw(NULL, gg->m_szModuleName, GG_KEY_UIN, 0))
SetDlgItemTextA(hwndDlg, IDC_UIN, ditoa(num));
else
SetDlgItemTextA(hwndDlg, IDC_UIN, "");
@@ -1001,7 +1001,7 @@ INT_PTR CALLBACK gg_acc_mgr_guidlgproc(HWND hwndDlg, UINT msg, WPARAM wParam, LP
GetDlgItemTextA(hwndDlg, IDC_PASSWORD, str, sizeof(str));
CallService(MS_DB_CRYPT_ENCODESTRING, sizeof(str), (LPARAM) str);
gg->checknewuser(uin, str);
- db_set_w(NULL, gg->m_szModuleName, GG_KEY_UIN, uin);
+ db_set_dw(NULL, gg->m_szModuleName, GG_KEY_UIN, uin);
db_set_s(NULL, gg->m_szModuleName, GG_KEY_PASSWORD, str);
// Write Gadu-Gadu email