WinCE: compilation fix
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Aug 2011 09:50:13 +0000 (12:50 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Aug 2011 09:50:13 +0000 (12:50 +0300)
src/win32/thread.c

index 015c892..ebaaec8 100644 (file)
@@ -68,13 +68,13 @@ DWORD WaitForMultipleObjectsEx (DWORD nCount, const HANDLE *lpHandles,
                                 BOOL bWaitAll, DWORD dwMilliseconds,
                                 BOOL bAlertable)
 {
+    struct vlc_thread *th = vlc_threadvar_get (thread_key);
     HANDLE handles[nCount + 1];
     DWORD ret;
 
     memcpy(handles, lpHandles, nCount * sizeof(HANDLE));
     if (bAlertable)
     {
-        struct vlc_thread *th = vlc_threadvar_get (thread_key);
         if (th != NULL)
         {
             handles[nCount] = th->cancel_event;