diff options
author | George Hazan <ghazan@miranda.im> | 2018-09-21 17:55:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-09-21 17:55:32 +0300 |
commit | 6071fb87a02cd13fd68671086194a5757204f70d (patch) | |
tree | 844c880927a7acbf3f26a8baa4515aa778bd0cb6 /src/mir_app | |
parent | 4dd0f6f3dbd938c48c9eee40bcb4b4b6943f9810 (diff) |
old crutch removed: error messages to go in Unicode
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/meta_services.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<TFakeAckParams>(sttFakeAckFail, tfap);
+
SetEvent(hEvent);
return 10;
}
|