Sebastian Lackner : user32: Use RtlIsCriticalSectionLockedByThread to check lock owner.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 12 09:51:13 CDT 2015
Module: wine
Branch: master
Commit: 240cf962357c9844ef55e5a537e711c831f0ccfc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=240cf962357c9844ef55e5a537e711c831f0ccfc
Author: Sebastian Lackner <sebastian at 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 at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at 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();
More information about the wine-cvs
mailing list