From 3e4284bb32b1515cdcac6741d2c2e94f64f08063 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sat, 11 Jun 2016 23:45:23 +0000 Subject: MRA: change avatars load threads count default value from 4 to 1 add threads names git-svn-id: http://svn.miranda-ng.org/main/trunk@16948 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/src/Mra_functions.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'protocols/MRA/src/Mra_functions.cpp') diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp index 6f399df52c..b06913d615 100644 --- a/protocols/MRA/src/Mra_functions.cpp +++ b/protocols/MRA/src/Mra_functions.cpp @@ -887,6 +887,7 @@ void CMraProto::ShowFormattedErrorMessage(LPWSTR lpwszErrText, DWORD dwErrorCode static void FakeThread(void* param) { + Thread_SetName("MRA: ProtoBroadcastAckAsync"); Sleep(100); ACKDATA *ack = (ACKDATA*)param; @@ -935,9 +936,10 @@ CMStringA CopyNumber(const CMStringA &str) { CMStringA res; - for (LPCSTR p = str; *p; p++) - if (*p >= '0' && *p <= '9') - res.AppendChar(*p); + for (LPCSTR p = str; *p; p++) { + if (*p >= '0' && *p <= '9') + res.AppendChar(*p); + } return res; } -- cgit v1.2.3