summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-05 22:03:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-05 22:03:00 +0300
commit9000595b551d09cbaf14cbfd7b49aa5aca3d9a90 (patch)
treeea5e3f6abb32c518f7f82b10fbcc9ca67e70e13a /protocols/IcqOscarJ
parent48dd585af3311ef3e51bf081c37e61b56199a455 (diff)
proper fix for UINs in auth dialogs
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r--protocols/IcqOscarJ/src/fam_04message.cpp2
-rw-r--r--protocols/IcqOscarJ/src/fam_13servclist.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/fam_04message.cpp b/protocols/IcqOscarJ/src/fam_04message.cpp
index a86ee63662..25ed7614d9 100644
--- a/protocols/IcqOscarJ/src/fam_04message.cpp
+++ b/protocols/IcqOscarJ/src/fam_04message.cpp
@@ -1628,7 +1628,7 @@ void CIcqProto::handleMessageTypes(DWORD dwUin, char *szUID, DWORD dwTimestamp,
}
{
DB_AUTH_BLOB blob(hContact, pszMsgField[0], pszMsgField[1], pszMsgField[2], pszMsgField[3], pszMsgField[5]);
- *(DWORD*)(PBYTE)blob = dwUin;
+ blob.set_uin(dwUin);
PROTORECVEVENT pre = { 0 };
pre.timestamp = dwTimestamp;
diff --git a/protocols/IcqOscarJ/src/fam_13servclist.cpp b/protocols/IcqOscarJ/src/fam_13servclist.cpp
index 3e7b1004db..4d7e78c0b4 100644
--- a/protocols/IcqOscarJ/src/fam_13servclist.cpp
+++ b/protocols/IcqOscarJ/src/fam_13servclist.cpp
@@ -1392,7 +1392,7 @@ void CIcqProto::handleRecvAuthRequest(unsigned char *buf, size_t wLen)
szNick = null_strdup(szUid);
DB_AUTH_BLOB blob(hContact, szNick, 0, 0, 0, szReason);
- *(DWORD*)(PBYTE)blob = dwUin;
+ blob.set_uin(dwUin);
setByte(hContact, "Grant", 1);