[5/6] user32: Use RtlIsCriticalSectionLockedByThread to check lock owner.
Sebastian Lackner
sebastian at fds-team.de
Fri Oct 9 22:40:36 CDT 2015
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
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();
--
2.6.0
More information about the wine-patches
mailing list