Sebastian Lackner : user32: Use RtlIsCriticalSectionLockedByThread to check lock owner.
Module: wine Branch: master Commit: 240cf962357c9844ef55e5a537e711c831f0ccfc URL: http://source.winehq.org/git/wine.git/?a=commit;h=240cf962357c9844ef55e5a537... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Sat Oct 10 05:40:36 2015 +0200 user32: Use RtlIsCriticalSectionLockedByThread to check lock owner. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/user_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/user_main.c b/dlls/user32/user_main.c index 718abe0..45aea81 100644 --- a/dlls/user32/user_main.c +++ b/dlls/user32/user_main.c @@ -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();
participants (1)
-
Alexandre Julliard