From 4688195c4327ca3749230371b3634bfc74203f3d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 May 2019 15:39:51 +0300 Subject: h++: crash fix for 64 bit RTF --- plugins/HistoryPlusPlus/hpp_richedit.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/HistoryPlusPlus') diff --git a/plugins/HistoryPlusPlus/hpp_richedit.pas b/plugins/HistoryPlusPlus/hpp_richedit.pas index 73f045a6bb..2c5fd78228 100644 --- a/plugins/HistoryPlusPlus/hpp_richedit.pas +++ b/plugins/HistoryPlusPlus/hpp_richedit.pas @@ -1139,7 +1139,7 @@ begin end; end; -function RichEditStreamLoad(dwCookie: Longint; pbBuff: PByte; cb: Longint; var pcb: Longint): Longint; stdcall; +function RichEditStreamLoad(dwCookie: LPARAM; pbBuff: PByte; cb: Longint; var pcb: Longint): Longint; stdcall; var pBuff: PAnsiChar; begin @@ -1156,7 +1156,7 @@ begin Result := 0; end; -function RichEditStreamSave(dwCookie: Longint; pbBuff: PByte; cb: Longint; var pcb: Longint): Longint; stdcall; +function RichEditStreamSave(dwCookie: LPARAM; pbBuff: PByte; cb: Longint; var pcb: Longint): Longint; stdcall; var prevSize: Integer; begin -- cgit v1.2.3