diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-15 17:43:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-15 17:43:23 +0000 |
commit | b43dcf000f703e3ef421350f74208cf4c7cdea77 (patch) | |
tree | b4c4de1422fd5f6945f2f71c649a28f45d614fd7 /protocols/Gadu-Gadu/oauth.cpp | |
parent | 3b3200e91d1c76f0fdd6565c3c3bc1824d1a4a03 (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@979 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/oauth.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/oauth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Gadu-Gadu/oauth.cpp b/protocols/Gadu-Gadu/oauth.cpp index d652a79020..43983edb6d 100644 --- a/protocols/Gadu-Gadu/oauth.cpp +++ b/protocols/Gadu-Gadu/oauth.cpp @@ -361,7 +361,7 @@ char* GGPROTO::oauth_header(const char *httpmethod, const char *url) char *res, uin[32], *password = NULL, *token = NULL, *token_secret = NULL;
DBVARIANT dbv;
- UIN2ID(db_get_b(NULL, m_szModuleName, GG_KEY_UIN, 0), uin);
+ UIN2ID( db_get_dw(NULL, m_szModuleName, GG_KEY_UIN, 0), uin);
if (!db_get_s(NULL, m_szModuleName, GG_KEY_PASSWORD, &dbv, DBVT_ASCIIZ)) {
CallService(MS_DB_CRYPT_DECODESTRING, (WPARAM)(int)strlen(dbv.pszVal) + 1, (LPARAM)dbv.pszVal);
password = mir_strdup(dbv.pszVal);
@@ -395,7 +395,7 @@ int GGPROTO::oauth_receivetoken() int res = 0;
HANDLE nlc = NULL;
- UIN2ID(db_get_b(NULL, m_szModuleName, GG_KEY_UIN, 0), uin);
+ UIN2ID( db_get_dw(NULL, m_szModuleName, GG_KEY_UIN, 0), uin);
if (!db_get_s(NULL, m_szModuleName, GG_KEY_PASSWORD, &dbv, DBVT_ASCIIZ)) {
CallService(MS_DB_CRYPT_DECODESTRING, strlen(dbv.pszVal) + 1, (LPARAM)dbv.pszVal);
password = mir_strdup(dbv.pszVal);
|