user32: Use RtlIsCriticalSectionLockedByThread to check lock owner.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
04bd68409a
commit
240cf96235
|
@ -81,7 +81,7 @@ void USER_Unlock(void)
|
|||
*/
|
||||
void USER_CheckNotLock(void)
|
||||
{
|
||||
if (user_section.OwningThread == ULongToHandle(GetCurrentThreadId()) && user_section.RecursionCount)
|
||||
if (RtlIsCriticalSectionLockedByThread(&user_section))
|
||||
{
|
||||
ERR( "BUG: holding USER lock\n" );
|
||||
DebugBreak();
|
||||
|
|
Loading…
Reference in New Issue