]> git.sesse.net Git - vlc/commitdiff
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 015c8920dd8a5bb8540dac4c06865fa0912cba7d..ebaaec8d9a841943123aae8edb00fb01d1473c3d 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;