summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/filetransfer.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/filetransfer.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/filetransfer.cpp')
-rw-r--r--protocols/Gadu-Gadu/filetransfer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Gadu-Gadu/filetransfer.cpp b/protocols/Gadu-Gadu/filetransfer.cpp
index 4c58c59b15..d7c7aa52d5 100644
--- a/protocols/Gadu-Gadu/filetransfer.cpp
+++ b/protocols/Gadu-Gadu/filetransfer.cpp
@@ -66,9 +66,9 @@ void GGPROTO::dccconnect(uin_t uin)
if (!hContact) return;
// Read user IP and port
- ip = swap32(db_get_b(hContact, m_szModuleName, GG_KEY_CLIENTIP, 0));
+ ip = swap32(db_get_dw(hContact, m_szModuleName, GG_KEY_CLIENTIP, 0));
port = db_get_w(hContact, m_szModuleName, GG_KEY_CLIENTPORT, 0);
- myuin = db_get_b(NULL, m_szModuleName, GG_KEY_UIN, 0);
+ myuin = db_get_dw(NULL, m_szModuleName, GG_KEY_UIN, 0);
// If not port nor ip nor my uin (?) specified
if (!ip || !port || !uin) return;
@@ -136,7 +136,7 @@ void __cdecl GGPROTO::dccmainthread(void*)
netlog("gg_dccmainthread(): DCC Server Thread Starting");
// Readup number
- if (!(uin = db_get_b(NULL, m_szModuleName, GG_KEY_UIN, 0)))
+ if (!(uin = db_get_dw(NULL, m_szModuleName, GG_KEY_UIN, 0)))
{
netlog("gg_dccmainthread(): No Gadu-Gadu number specified. Exiting.");
if (hEvent) SetEvent(hEvent);
@@ -388,7 +388,7 @@ void __cdecl GGPROTO::dccmainthread(void*)
netlog("gg_dccmainthread(): Client: %d, Client accept.", dcc->peer_uin);
// Check if user is on the list and if it is my uin
if (getcontact(dcc->peer_uin, 0, 0, NULL) &&
- db_get_b(NULL, m_szModuleName, GG_KEY_UIN, -1) == dcc->uin)
+ db_get_dw(NULL, m_szModuleName, GG_KEY_UIN, -1) == dcc->uin)
break;
// Kill unauthorized dcc
@@ -892,11 +892,11 @@ HANDLE GGPROTO::SendFile(HANDLE hContact, const PROTOCHAR* szDescription, PROTOC
filename = mir_t2a(ppszFiles[0]);
// Read user IP and port
- ip = swap32(db_get_b(hContact, m_szModuleName, GG_KEY_CLIENTIP, 0));
+ ip = swap32(db_get_dw(hContact, m_szModuleName, GG_KEY_CLIENTIP, 0));
port = db_get_w(hContact, m_szModuleName, GG_KEY_CLIENTPORT, 0);
- myuin = db_get_b(NULL, m_szModuleName, GG_KEY_UIN, 0);
- uin = db_get_b(hContact, m_szModuleName, GG_KEY_UIN, 0);
- ver = db_get_b(hContact, m_szModuleName, GG_KEY_CLIENTVERSION, 0);
+ myuin = db_get_dw(NULL, m_szModuleName, GG_KEY_UIN, 0);
+ uin = db_get_dw(hContact, m_szModuleName, GG_KEY_UIN, 0);
+ ver = db_get_dw(hContact, m_szModuleName, GG_KEY_CLIENTVERSION, 0);
// Use DCC7 if a contact is using at least version 7.6 or unknown version
if ((ver & 0x00ffffff) >= 0x29 || !ver) {