diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/MRA/src/MraAvatars.cpp | 6 | ||||
-rw-r--r-- | protocols/Sametime/src/glib/gpoll.c | 4 |
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; |