summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/msgs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp
index 3a977d8c62..617619f89f 100644
--- a/plugins/Scriver/src/msgs.cpp
+++ b/plugins/Scriver/src/msgs.cpp
@@ -163,12 +163,12 @@ static INT_PTR SendMessageCommandWorker(MCONTACT hContact, wchar_t *pszMsg)
static INT_PTR SendMessageCommandW(WPARAM hContact, LPARAM lParam)
{
- return SendMessageCommandWorker(hContact, mir_a2u(LPCSTR(lParam)));
+ return SendMessageCommandWorker(hContact, mir_wstrdup(LPCWSTR(lParam)));
}
static INT_PTR SendMessageCommand(WPARAM hContact, LPARAM lParam)
{
- return SendMessageCommandWorker(hContact, mir_wstrdup(LPCWSTR(lParam)));
+ return SendMessageCommandWorker(hContact, mir_a2u(LPCSTR(lParam)));
}
/////////////////////////////////////////////////////////////////////////////////////////