diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-26 12:24:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-26 12:24:18 +0000 |
commit | 596d5ab98574161befaf4b37513bbb905270e317 (patch) | |
tree | 9f86980ded6900c71f5a73856b8f2beed30b8cce /plugins/HistoryPlusPlus/hpp_events.pas | |
parent | aa7e0aa1859e017780d250d3c7b8190f309b450b (diff) |
fix for EVENTTYPE_ADDED
git-svn-id: http://svn.miranda-ng.org/main/trunk@1664 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryPlusPlus/hpp_events.pas')
-rw-r--r-- | plugins/HistoryPlusPlus/hpp_events.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/HistoryPlusPlus/hpp_events.pas b/plugins/HistoryPlusPlus/hpp_events.pas index 2e98364d39..657612dbf4 100644 --- a/plugins/HistoryPlusPlus/hpp_events.pas +++ b/plugins/HistoryPlusPlus/hpp_events.pas @@ -714,8 +714,8 @@ var begin
// blob is: uin(DWORD), hContact(THANDLE), nick(ASCIIZ), first(ASCIIZ), last(ASCIIZ), email(ASCIIZ)
uin := PDWord(EventInfo.pBlob)^;
- hContact := PInt_ptr(int_ptr(Pointer(EventInfo.pBlob)) + SizeOf(dword))^;
- BytePos := SizeOf(dword) + SizeOf(THandle); // !!
+ hContact := PDWord(PDWord(Pointer(EventInfo.pBlob)) + SizeOf(dword))^;
+ BytePos := SizeOf(dword)*2;
// read nick
ReadStringTillZeroA(Pointer(EventInfo.pBlob), EventInfo.cbBlob, Nick, BytePos);
if Nick = '' then
|