diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-14 19:26:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-14 19:26:22 +0000 |
commit | b47323e12660e2e96dac515f609f0778225a4536 (patch) | |
tree | 86f1c149af616d247e293576c18176e9bae02d8a /protocols/IcqOscarJ/src/icq_direct.cpp | |
parent | 967c43ea2061ddd25e69927780e534ac93ce576a (diff) |
ICQ: warning level 4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11421 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_direct.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_direct.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/icq_direct.cpp b/protocols/IcqOscarJ/src/icq_direct.cpp index 959b986015..e034de40f0 100644 --- a/protocols/IcqOscarJ/src/icq_direct.cpp +++ b/protocols/IcqOscarJ/src/icq_direct.cpp @@ -159,7 +159,7 @@ BOOL CIcqProto::IsDirectConnectionOpen(MCONTACT hContact, int type, int bPassive // This function is called from the Netlib when someone is connecting to
// one of our incomming DC ports
-void icq_newConnectionReceived(HANDLE hNewConnection, DWORD dwRemoteIP, void *pExtra)
+void icq_newConnectionReceived(HANDLE hNewConnection, DWORD, void *pExtra)
{
// Start a new thread for the incomming connection
CIcqProto* ppro = (CIcqProto*)pExtra;
@@ -197,8 +197,7 @@ void __cdecl CIcqProto::icq_directThread(directthreadstartinfo *dtsi) HANDLE hPacketRecver;
BOOL bFirstPacket = TRUE;
size_t nSkipPacketBytes = 0;
- DWORD dwReqMsgID1;
- DWORD dwReqMsgID2;
+ DWORD dwReqMsgID1 = 0, dwReqMsgID2 = 0;
srand(time(NULL));
{
@@ -515,7 +514,7 @@ void CIcqProto::handleDirectPacket(directconnect* dc, PBYTE buf, size_t wLen) DWORD dwUin;
DWORD dwPort;
DWORD dwCookie;
- MCONTACT hContact;
+ MCONTACT hContact = 0;
if (wLen != 0x30) {
NetLog_Direct("Error: Received malformed PEER_INIT");
|