From f45ed26f105ce9cccf19c54690695fb304ca7c57 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 19 Apr 2023 21:28:10 +0300 Subject: fixes #3491 (History++: crash on event removal) --- include/delphi/m_database.inc | 2 +- plugins/HistoryPlusPlus/historypp.dproj | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/delphi/m_database.inc b/include/delphi/m_database.inc index 4c41eac938..97d31909ec 100644 --- a/include/delphi/m_database.inc +++ b/include/delphi/m_database.inc @@ -83,7 +83,7 @@ hDbEvent should have been returned by db_event_add/first/last/next/prev() Returns 0 on success, or nonzero if hDbEvent was invalid Triggers a db/event/deleted event just *before* the event is deleted } -function db_event_delete(hDbEvent:TMEVENT):int; stdcall; external CoreDLL; +function db_event_delete(hDbEvent:TMEVENT; flags:int=0):int; stdcall; external CoreDLL; { Retrieves a handle to the first event in the chain for hContact diff --git a/plugins/HistoryPlusPlus/historypp.dproj b/plugins/HistoryPlusPlus/historypp.dproj index dad4c3f3c1..dac7decafd 100644 --- a/plugins/HistoryPlusPlus/historypp.dproj +++ b/plugins/HistoryPlusPlus/historypp.dproj @@ -8,7 +8,7 @@ Library VCL 13.4 - Win64 + Win32 true @@ -98,6 +98,8 @@ 1033 + W:\miranda-ng\bin17\Debug\Miranda32.exe + W:\miranda-ng\bin17\Debug ..\..\include\delphi;..\..\plugins\ExternalAPI\delphi;$(DCC_UnitSearchPath) true ..\..\bin15\Release\Plugins\ @@ -123,9 +125,9 @@ ..\..\bin17\Debug\Obj\hpp\ - D:\Myranda\bin17\Debug64 + W:\miranda-ng\bin17\Debug64 true - D:\Myranda\bin17\Debug64\Miranda64.exe + W:\miranda-ng\bin17\Debug64\Miranda64.exe ..\..\bin15\temp\res\ ..\..\bin17\Debug64\Plugins\ ..\..\bin17\Debug64\Plugins\ -- cgit v1.2.3