From 6071fb87a02cd13fd68671086194a5757204f70d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 21 Sep 2018 17:55:32 +0300 Subject: old crutch removed: error messages to go in Unicode --- src/mir_app/src/meta_services.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/meta_services.cpp b/src/mir_app/src/meta_services.cpp index d5da2e557c..8e00dc8fe8 100644 --- a/src/mir_app/src/meta_services.cpp +++ b/src/mir_app/src/meta_services.cpp @@ -185,7 +185,6 @@ struct TFakeAckParams HANDLE hEvent; MCONTACT hContact; LONG id; - char msg[512]; }; static void __cdecl sttFakeAckFail(TFakeAckParams *tParam) @@ -193,7 +192,7 @@ static void __cdecl sttFakeAckFail(TFakeAckParams *tParam) WaitForSingleObject(tParam->hEvent, INFINITE); Sleep(100); - ProtoBroadcastAck(META_PROTO, tParam->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, (HANDLE)tParam->id, (WPARAM)tParam->msg); + ProtoBroadcastAck(META_PROTO, tParam->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, (HANDLE)tParam->id, (WPARAM)TranslateT("No online contacts found.")); CloseHandle(tParam->hEvent); mir_free(tParam); @@ -240,9 +239,8 @@ INT_PTR Meta_SendMessage(WPARAM wParam, LPARAM lParam) tfap->hContact = ccs->hContact; tfap->hEvent = hEvent; tfap->id = 10; - strncpy(tfap->msg, Translate("No online contacts found."), _countof(tfap->msg) - 1); - mir_forkThread(sttFakeAckFail, tfap); + SetEvent(hEvent); return 10; } -- cgit v1.2.3