platform: fix win32 compilation error
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 17 May 2012 12:30:19 +0000 (14:30 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 17 May 2012 12:30:19 +0000 (14:30 +0200)
src/lib/platform/windows/os-threads.h

index ff773f094cab69aca2374e9b5c30a2a0200db277..47101dcd0c5326c610546351c747da747f7360bc 100644 (file)
@@ -34,7 +34,7 @@
 namespace PLATFORM
 {
   #define thread_t                                 HANDLE
-  #define INVALID_THREAD_VALUE                     INVALID_HANDLE
+  #define INVALID_THREAD_VALUE                     NULL
   #define ThreadsWait(thread, retVal)              (::WaitForSingleObject(thread, INFINITE) < 0)
   #define ThreadsCreate(thread, func, arg)         ((thread = ::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, arg, 0, NULL)) == NULL ? false : true)