diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-10 14:42:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-10 14:42:51 +0000 |
commit | 33953cc6a0fab6a91af293c6838f8a46dd7922da (patch) | |
tree | 2dbbe718ad42545bde6c9f7672387827c530550a /protocols/Yahoo/src/yahoo.cpp | |
parent | e190a7fde521bd6af9ea485cc730f854aaf38e11 (diff) |
HCONTACT, part 3
git-svn-id: http://svn.miranda-ng.org/main/trunk@8081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/yahoo.cpp')
-rw-r--r-- | protocols/Yahoo/src/yahoo.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/protocols/Yahoo/src/yahoo.cpp b/protocols/Yahoo/src/yahoo.cpp index 9c5edf2f63..ef7fcfb7c0 100644 --- a/protocols/Yahoo/src/yahoo.cpp +++ b/protocols/Yahoo/src/yahoo.cpp @@ -831,36 +831,36 @@ void CYahooProto::ext_contact_added(const char *myid, const char *who, const cha if (msg != NULL)
pre.lParam += lstrlenA(msg);
- pCurBlob=(PBYTE)malloc(pre.lParam);
+ pCurBlob = (PBYTE)malloc(pre.lParam);
pre.szMessage = (char *)pCurBlob;
// UIN
- *( PDWORD )pCurBlob = 0;
- pCurBlob+=sizeof(DWORD);
+ *(PDWORD)pCurBlob = 0;
+ pCurBlob += sizeof(DWORD);
// hContact
- *( PHANDLE )pCurBlob = hContact;
- pCurBlob+=sizeof(HANDLE);
+ *(PDWORD)pCurBlob = (DWORD)hContact;
+ pCurBlob += sizeof(DWORD);
// NICK
- lstrcpyA((char *)pCurBlob, nick);
+ lstrcpyA((char*)pCurBlob, nick);
pCurBlob+=lstrlenA((char *)pCurBlob)+1;
// FIRST
- lstrcpyA((char *)pCurBlob, (fname != NULL) ? fname : "");
+ lstrcpyA((char*)pCurBlob, (fname != NULL) ? fname : "");
pCurBlob+=lstrlenA((char *)pCurBlob)+1;
// LAST
- lstrcpyA((char *)pCurBlob, (lname != NULL) ? lname : "");
+ lstrcpyA((char*)pCurBlob, (lname != NULL) ? lname : "");
pCurBlob+=lstrlenA((char *)pCurBlob)+1;
// E-mail
- lstrcpyA((char *)pCurBlob,who);
+ lstrcpyA((char*)pCurBlob,who);
pCurBlob+=lstrlenA((char *)pCurBlob)+1;
// Reason
- lstrcpyA((char *)pCurBlob, (msg != NULL) ? msg : "");
+ lstrcpyA((char*)pCurBlob, (msg != NULL) ? msg : "");
ProtoChainRecv(hContact, PSR_AUTH, 0, (LPARAM)&pre);
}
|