summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-04-28 11:10:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-04-28 11:10:32 +0000
commit8c69cf74023323e9ace7cf76494bd1a0990da160 (patch)
tree0c63b18e2940f98d430d34afd268cb992cca2060 /protocols/Skype/src/skype_database.cpp
parent6c7c1bdcfd6c306a900c92ea0c2eca75fc662052 (diff)
small cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_database.cpp')
-rw-r--r--protocols/Skype/src/skype_database.cpp28
1 files changed, 17 insertions, 11 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp
index c384611c7b..96d09f9447 100644
--- a/protocols/Skype/src/skype_database.cpp
+++ b/protocols/Skype/src/skype_database.cpp
@@ -1,6 +1,6 @@
#include "skype_proto.h"
-bool CSkypeProto::IsMessageInDB(HANDLE hContact, DWORD timestamp, const char* guid, int flag)
+bool CSkypeProto::IsMessageInDB(HANDLE hContact, DWORD timestamp, const char *guid, int flag)
{
bool result = false;
@@ -58,12 +58,12 @@ void CSkypeProto::RaiseAuthRequestEvent(DWORD timestamp, CContact::Ref contact)
SEString data;
contact->GetPropReceivedAuthrequest(data);
- char* reason = ::mir_strdup(data);
+ char *reason = ::mir_strdup(data);
SEString last;
contact->GetFullname(data, last);
- char* firstName = ::mir_strdup(data);
- char* lastName = ::mir_strdup(last);
+ char *firstName = ::mir_strdup(data);
+ char *lastName = ::mir_strdup(last);
HANDLE hContact = this->AddContact(contact);
@@ -80,13 +80,19 @@ void CSkypeProto::RaiseAuthRequestEvent(DWORD timestamp, CContact::Ref contact)
PBYTE pBlob, pCurBlob;
pCurBlob = pBlob = (PBYTE)::mir_alloc(cbBlob);
- *((PDWORD)pCurBlob) = 0; pCurBlob += sizeof(DWORD);
- *((PDWORD)pCurBlob) = (DWORD)hContact; pCurBlob += sizeof(DWORD);
- ::strcpy((char*)pCurBlob, nick); pCurBlob += ::strlen(nick) + 1;
- ::strcpy((char*)pCurBlob, firstName); pCurBlob += ::strlen(firstName) + 1;
- ::strcpy((char*)pCurBlob, lastName); pCurBlob += ::strlen(lastName) + 1;
- ::strcpy((char*)pCurBlob, sid); pCurBlob += ::strlen(sid) + 1;
- ::strcpy((char*)pCurBlob, reason);
+ *((PDWORD)pCurBlob) = 0;
+ pCurBlob += sizeof(DWORD);
+ *((PDWORD)pCurBlob) = (DWORD)hContact;
+ pCurBlob += sizeof(DWORD);
+ ::strcpy((char *)pCurBlob, nick);
+ pCurBlob += ::strlen(nick) + 1;
+ ::strcpy((char *)pCurBlob, firstName);
+ pCurBlob += ::strlen(firstName) + 1;
+ ::strcpy((char *)pCurBlob, lastName);
+ pCurBlob += ::strlen(lastName) + 1;
+ ::strcpy((char *)pCurBlob, sid);
+ pCurBlob += ::strlen(sid) + 1;
+ ::strcpy((char *)pCurBlob, reason);
this->AddDBEvent(hContact, EVENTTYPE_AUTHREQUEST, time(NULL), PREF_UTF, cbBlob, pBlob);
}