summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Scriver/src/msgs.cpp2
-rw-r--r--src/core/stdmsg/src/globals.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp
index b943a7a5f1..e62066b396 100644
--- a/plugins/Scriver/src/msgs.cpp
+++ b/plugins/Scriver/src/msgs.cpp
@@ -88,7 +88,7 @@ static int MessageEventAdded(WPARAM hContact, LPARAM lParam)
if (hwnd == nullptr)
hwnd = Srmm_FindWindow(hContactWnd = db_event_getContact(hDbEvent));
if (hwnd)
- SendMessage(hwnd, HM_DBEVENTADDED, hContactWnd, lParam);
+ ::PostMessage(hwnd, HM_DBEVENTADDED, hContactWnd, lParam);
DBEVENTINFO dbei = {};
db_event_get(hDbEvent, &dbei);
diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp
index 26f0a72e10..8a5db71ed9 100644
--- a/src/core/stdmsg/src/globals.cpp
+++ b/src/core/stdmsg/src/globals.cpp
@@ -65,12 +65,12 @@ static int dbaddedevent(WPARAM hContact, LPARAM hDbEvent)
if (hContact) {
HWND h = Srmm_FindWindow(hContact);
if (h)
- SendMessage(h, HM_DBEVENTADDED, hContact, hDbEvent);
+ ::PostMessage(h, HM_DBEVENTADDED, hContact, hDbEvent);
MCONTACT hEventContact = db_event_getContact(hDbEvent);
if (hEventContact != hContact)
if ((h = Srmm_FindWindow(hEventContact)) != nullptr)
- SendMessage(h, HM_DBEVENTADDED, hEventContact, hDbEvent);
+ ::PostMessage(h, HM_DBEVENTADDED, hEventContact, hDbEvent);
}
return 0;
}