summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-26 11:09:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-26 11:09:44 +0000
commit075143bb9568f6d5e93e3fbd5df93d961648939e (patch)
treed2eef6a9e3c94ddd5fb0cafdc71a681e7c0ceafc
parentd3540ad7bf4de7d1bae2569db357ad91656feb76 (diff)
fix for h++ crash when reading the system history
git-svn-id: http://svn.miranda-ng.org/main/trunk@1662 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/HistoryPlusPlus/hpp_events.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/HistoryPlusPlus/hpp_events.pas b/plugins/HistoryPlusPlus/hpp_events.pas
index 80eefab2bf..2e98364d39 100644
--- a/plugins/HistoryPlusPlus/hpp_events.pas
+++ b/plugins/HistoryPlusPlus/hpp_events.pas
@@ -671,8 +671,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