platform: fixed initial value of m_thread in CThread
[deb_libcec.git] / src / lib / platform / windows / os-threads.h
index 3714c16711950919edd768708e5d2cee4fa48594..ff773f094cab69aca2374e9b5c30a2a0200db277 100644 (file)
@@ -34,6 +34,7 @@
 namespace PLATFORM
 {
   #define thread_t                                 HANDLE
+  #define INVALID_THREAD_VALUE                     INVALID_HANDLE
   #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)