wince: build fix
authorPierre Ynard <linkfanel@yahoo.fr>
Wed, 1 Dec 2010 18:13:46 +0000 (19:13 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Wed, 1 Dec 2010 18:13:46 +0000 (19:13 +0100)
src/win32/thread.c

index 0c42284..ddbee72 100644 (file)
@@ -588,11 +588,10 @@ int vlc_clone (vlc_thread_t *p_handle, void * (*entry) (void *), void *data,
         free (th);
         return ENOMEM;
     }
-    entry_data->cancel_event = th->cancel_event;
 
     /* Not sure if CREATE_SUSPENDED + ResumeThread() is any useful on WinCE.
      * Thread handles act up, too. */
-    hThread = CreateThread (NULL, 128*1024, vlc_entry, entry_data,
+    hThread = CreateThread (NULL, 128*1024, vlc_entry, th,
                             CREATE_SUSPENDED, NULL);
     if (hThread == NULL)
     {