From 075143bb9568f6d5e93e3fbd5df93d961648939e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 26 Sep 2012 11:09:44 +0000 Subject: 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 --- plugins/HistoryPlusPlus/hpp_events.pas | 4 ++-- 1 file 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 -- cgit v1.2.3