summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-10 12:54:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-10 12:54:20 +0300
commitef0ba268b340eaf1217a96d763342c25668588b4 (patch)
tree17396375e213043c2ce1c59b50b7f30488dcb83d /include
parent33733576589076f080ddfa000b899843016a2597 (diff)
Protocols: preventing recursive contact deletion
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_database.inc1
-rw-r--r--include/m_database.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/delphi/m_database.inc b/include/delphi/m_database.inc
index 43691bc9c6..3da8ce5123 100644
--- a/include/delphi/m_database.inc
+++ b/include/delphi/m_database.inc
@@ -211,7 +211,6 @@ function db_set_resident(const szModule:PAnsiChar; const szSetting:PAnsiChar; bE
///////////////////////////////////////////////////////////////////////////////
function db_add_contact() : TMCONTACT; stdcall; external CoreDLL;
-function db_delete_contact(hContact:TMCONTACT) : int; stdcall; external CoreDLL;
function db_is_contact(hContact:TMCONTACT) : int; stdcall; external CoreDLL;
diff --git a/include/m_database.h b/include/m_database.h
index 0a31bc68fc..9aaffc79eb 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -89,7 +89,7 @@ EXTERN_C MIR_CORE_DLL(MCONTACT) db_add_contact(void);
// Because all events are deleted, lots of people may end up with invalid event
// handles from this operation, which they should be prepared for.
-EXTERN_C MIR_CORE_DLL(int) db_delete_contact(MCONTACT hContact);
+EXTERN_C MIR_CORE_DLL(int) db_delete_contact(MCONTACT hContact, bool bFromProto = false);
// Checks if a given value is a valid contact handle, note that due
// to the nature of multiple threading, a valid contact can still become