]> git.sesse.net Git - vlc/blobdiff - src/misc/threads.c
Win32: compile fix
[vlc] / src / misc / threads.c
index 0f9821fb8d19c6e282e5e6edb9c339ce82572a76..5dd6f128b29b2aab3948de6aa9d4316532a55903 100644 (file)
@@ -148,7 +148,7 @@ int __vlc_thread_set_priority( vlc_object_t *p_this, const char * psz_file,
 #elif defined( WIN32 ) || defined( UNDER_CE )
     VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
 
-    if( !SetThreadPriority(p_priv->thread_id->handle, i_priority) )
+    if( !SetThreadPriority(p_priv->thread_id, i_priority) )
     {
         msg_Warn( p_this, "couldn't set a faster priority" );
         return 1;
@@ -176,7 +176,7 @@ void __vlc_thread_join( vlc_object_t *p_this )
 
 #ifndef UNDER_CE
     if( ! DuplicateHandle(GetCurrentProcess(),
-            p_priv->thread_id->handle,
+            p_priv->thread_id,
             GetCurrentProcess(),
             &hThread,
             0,