Changeset 54e8456263f8994e792be65907d341682bbdcc28

Show
Ignore:
Timestamp:
02/10/08 17:49:59 (7 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1202662199 +0000
git-parent:

[e5896809c2ea5686fe1c0831c72b9e8e5a7c1e31]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1202662199 +0000
Message:

Win32 threads: Set priority on success rather than failure.
Patch from atmo.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/threads.c

    r9e704fa r54e8456  
    592592        p_priv->thread_id.id = (DWORD)threadId; 
    593593        p_priv->thread_id.hThread = (HANDLE)hThread; 
    594     ResumeThread((HANDLE)hThread); 
     594        ResumeThread((HANDLE)hThread); 
    595595    } 
    596596 
    597597    i_ret = ( p_priv->thread_id.hThread ? 0 : 1 ); 
    598598 
    599     if( i_ret && i_priority ) 
     599    if( !i_ret && i_priority ) 
    600600    { 
    601601        if( !SetThreadPriority(p_priv->thread_id.hThread, i_priority) )