summaryrefslogtreecommitdiff
path: root/src/threadengines
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-18 18:25:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-18 18:25:56 +0000
commit955dfd805df45f63aba037bcb506e1071afd54ef (patch)
tree7c33a2f1e84f882ae4df513c4a7b6c85864b5d5b /src/threadengines
parent2b51823f8d4ae1bd84a4e8d9d9d0ac0858f88bf1 (diff)
Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lots of thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/threadengines')
-rw-r--r--src/threadengines/threadengine_win32.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp
index 07d1b2373..566611367 100644
--- a/src/threadengines/threadengine_win32.cpp
+++ b/src/threadengines/threadengine_win32.cpp
@@ -27,11 +27,11 @@ void Win32ThreadEngine::Create(Thread* thread_to_init)
HANDLE* MyThread = new HANDLE;
DWORD ThreadId = 0;
- if (!(*MyThread = CreateThread(NULL,0,Win32ThreadEngine::Entry,this,0,&ThreadId)))
+ if (NULL == (*MyThread = CreateThread(NULL,0,Win32ThreadEngine::Entry,this,0,&ThreadId)))
{
delete MyThread;
Mutex(false);
- throw CoreException(std::string("Unable to reate new Win32ThreadEngine: ") + dlerror());
+ throw CoreException(std::string("Unable to create new Win32ThreadEngine: ") + dlerror());
}
NewThread = thread_to_init;
@@ -85,3 +85,4 @@ void Win32ThreadEngine::FreeThread(Thread* thread)
}
}
+