summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-02 22:21:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-02 22:21:55 +0300
commit10091bbca1380a1d8e3b9d61b8c175490036af5b (patch)
treeb08bd16212909ac1b72bfefaa70ab71b4e63974d /protocols
parent2347a641948e9082b0e842eb0a8480abdfba09e0 (diff)
old shit died
now there's no need to create fake services & events
Diffstat (limited to 'protocols')
-rw-r--r--protocols/MRA/src/MraAvatars.cpp6
-rw-r--r--protocols/Sametime/src/glib/gpoll.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/protocols/MRA/src/MraAvatars.cpp b/protocols/MRA/src/MraAvatars.cpp
index 4e4183c1f3..74c8009b29 100644
--- a/protocols/MRA/src/MraAvatars.cpp
+++ b/protocols/MRA/src/MraAvatars.cpp
@@ -19,7 +19,7 @@ const LPSTR lpcszContentType[9] =
struct MRA_AVATARS_QUEUE : public FIFO_MT
{
HANDLE hNetlibUser;
- HANDLE hThreadEvents[MAXIMUM_WAIT_OBJECTS];
+ HANDLE hThreadEvents[64];
int iThreadsCount, iThreadsRunning;
};
@@ -67,8 +67,8 @@ DWORD CMraProto::MraAvatarsQueueInitialize(HANDLE *phAvatarsQueueHandle)
pmraaqAvatarsQueue->iThreadsCount = db_get_dw(NULL, MRA_AVT_SECT_NAME, "WorkThreadsCount", MRA_AVT_DEFAULT_WRK_THREAD_COUNTS);
if (pmraaqAvatarsQueue->iThreadsCount == 0)
pmraaqAvatarsQueue->iThreadsCount = 1;
- if (pmraaqAvatarsQueue->iThreadsCount > MAXIMUM_WAIT_OBJECTS)
- pmraaqAvatarsQueue->iThreadsCount = MAXIMUM_WAIT_OBJECTS;
+ if (pmraaqAvatarsQueue->iThreadsCount > 64)
+ pmraaqAvatarsQueue->iThreadsCount = 64;
pmraaqAvatarsQueue->iThreadsRunning = 0;
for (int i = 0; i < pmraaqAvatarsQueue->iThreadsCount; i++)
diff --git a/protocols/Sametime/src/glib/gpoll.c b/protocols/Sametime/src/glib/gpoll.c
index 940abae38f..e9410c7ded 100644
--- a/protocols/Sametime/src/glib/gpoll.c
+++ b/protocols/Sametime/src/glib/gpoll.c
@@ -261,7 +261,7 @@ g_poll (GPollFD *fds,
guint nfds,
gint timeout)
{
- HANDLE handles[MAXIMUM_WAIT_OBJECTS];
+ HANDLE handles[64];
gboolean poll_msgs = FALSE;
GPollFD *f;
gint nhandles = 0;
@@ -291,7 +291,7 @@ g_poll (GPollFD *fds,
if (i == nhandles)
{
- if (nhandles == MAXIMUM_WAIT_OBJECTS)
+ if (nhandles == _countof(handles))
{
g_warning ("Too many handles to wait for!\n");
break;